Is there any tool that will help detect potential errors like "undefined function" in a PHP script before runtime?
For example, consider:
<?php
zarfnutz ( 'blah' );
?>
If you ask the PHP command line interface to check that for syntax errors, it responds that there are none. But of course the script will fail if you try to run it, because there's no function called "zarfnutz".
I understand that if the language is self-referential enough, it's literally not possible to create such a tool which is guaranteed accurate (I don't know if PHP is in fact self-referential enough). But in any case, there could definitely be a tool that could at least warn you that "zarfnutz" might be undefined, and such a tool would be very helpful to me.
Does anyone know of one?
Thanks in advance.