Marc’s PHP 5.2.9 is Out

php.jpg

This morning Marc Liyanage tweeted that someone had used his build process to build PHP 5.2.9 for Leopard and posted it to Marc's web site. I downloaded and installed it and when I tried to run my old info.php I was surprised to get nothing:

  <? phpinfo() ?>

When I checked Marc's website I saw that hist test info.php was slightly different:

  <?php phpinfo() ?>

Trying that, it worked like a charm. I'm wondering if that's something in PHP 5 that I have been missing up to this point in time. I'll have to check and see what my other PHP scripts have to say about the matter.

Yup, it's the default setting on PHP - to require the 'long form' of the script start. It's configurable in the php.ini file, but that's a little dangerous as there might not be this setting in the web servers it runs on, etc. So I went through all my PHP code for the North Hollow Farm site and fixed it up.

[3/15] UPDATE: OK, so I took the time this morning to clean up the North Hollow project and then repoint the workarea to the right repository on frosty. It was a little bit of a hassle, since I hadn't touched this since I got it off my SGI box, but still, it was not horribly hard. Now I have something that works with the default PHP install and the PostgreSQL database is permissioned for the user _www as opposed to the older www. Minor change, but a pain to figure out.