If you have upgraded from Snow Leopard to the new OS X Lion, you will notice PHP has also been upgraded – from 5.2 to 5.3.
A couple of points that I noticed post-install. Firstly, my existing /etc/php.ini
file was moved to /etc/php.ini-5.2-previous
. Restoring this was trivial:
sudo cp /etc/php.ini-5.2-previous /etc/php.ini
However, I noticed that extensions previously installed under /usr/lib/php/extensions/no-debug-non-zts-20090626/
had been removed. So, if you have extensions that you wish to still use with 5.3, they will need to be re-built.
I also noticed that Apple have included the Suhosin patch and extension. Suhosin is part of the Hardened-PHP project which aims to protect PHP applications against buffer-overflow and format string vulnerabilities. In theory, this functionality should be transparent to your application – no configuration or code changes are required.