Next PHP uselessness of the day
There is the option “php -l” which checks the validity of a source file. Obviously it doesn’t do a wonderful job as it doesn’t detect misspelt variable or method names; but I suppose it’s better than nothing.
So I apply this recursively to all the files under a certain directory. For reasons I won’t go into here there are Postscript fonts checked into the source directory. To this files, “php -l” outputs:
No syntax errors detected in ./pdflib/fonts/php_Times-Italic.afm
I assert “php -l” is not very useful.