|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-29 08:45 UTC] maxim@php.net
[2004-06-14 09:36 UTC] magnus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 20:00:01 2025 UTC |
In the CLI version, you can do: 'php -l {filename}' and find out whether the file you specified is syntactically correct. This would be a powerful feature to be able to call from userland when deciding whether or not to include files based on whether or not they are valid PHP files. I know this is in the Zend area of things, but it would be a very cool addition. In /sapi/cli/php_cli.c, it seems like a trivial function. Before creating a function to submit, or someone beating me to it, is there a good reason NOT to do this?