Re: [PHP] Re: "php -l" - does it find *anything*?

[email protected] (Peter Lind)
Newsgroups php.general
Message-ID <[email protected]>
On 2 August 2010 12:05, Gary <[email protected]> wrote:
> Okay, I'm resurrecting this because I just found something I consider to
> be strange in the documentation. Under the -l option at
> http://php.net/manual/en/features.commandline.options.php it says
>
> "This option won't find fatal errors (like undefined functions). Use -f
> if you would like to test for fatal errors too."
>
> Okay, but.. umm... "-f"? Really? That doesn't make any sense, given what
> -f is for (actually running the script). Documentation bug, or is my
> brain failing to work today?

Sounds like a roundabout way of saying "You can only find run-time
errors (such as undefined functions) by actually running the script".
Could definitely need some clarification

Regards
Peter

-- 
<hype>
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
</hype>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.