Having used PHP 5 on my LAMP server for a few days I began to notice the distinct lack of error messages when I had syntax errors in my code. After a bit of googling about I discovered that the reason was I had not installed the php.ini file. This can be found in the directory you end up with after unzipping the source code. There are two files php.ini.dist and php.ini.recommended, after a bit of reading of the INSTALL file I chose to use php.ini.dist. All that was required was to copy the file over to the /usr/local/lib directory and suddenly all my syntax errors appeared!!