I noticed after installing PHP 5.1.4 on my brand new MacBook Pro that my scripts weren’t executing. After about 3 hours of messing around, I realized that short_open_tag was turned off in php.ini.

Location: /usr/local/php5/lib/php.ini

Should be: short_open_tag = On

Not sure if this is a common issue, or if the PHP defaults have been changed. I installed the package distributed by Marc Liyanage, found at his homepage.

Edit: According to the php web site, this should be on by default. 

short_open_tag “1″ PHP_INI_PERDIR PHP_INI_ALL in PHP <= 4.0.0.
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
 

2 Responses to PHP 5.1.4 Install on Intel Mac (Bug?)

  1. dotdot says:

    The default behaviour was changed due to problems working with XML :-)

  2. boice tomlin says:

    This was exactly the problem on my machine. thanks for the fix.

    -boice

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>