|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52515 php -l (lint) documentation incorrect/confusing
Submitted: 2010-08-02 15:13 UTC Modified: 2010-09-21 18:01 UTC
From: exaxngxums at mailinator dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.3.3 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: exaxngxums at mailinator dot com
New email:
PHP Version: OS:


 [2010-08-02 15:13 UTC] exaxngxums at mailinator dot com
Under the -l option at it says

"This option won't find fatal errors (like undefined functions). Use -f
if you would like to test for fatal errors too."

"-f"? Really? That doesn't make any sense, given what -f is for (actually running the script).

I asked on the users mailing list and Peter Lnid said
"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"

I agree with him, on both points. Please make it explicitly clear what you mean.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-21 18:01 UTC]
-Status: Open +Status: Bogus
 [2010-09-21 18:01 UTC]
Why doesn't it make sense? -l just runs a syntax check. If you want to know about 
errors, other than the syntax, you need to execute the file properly, which is 
exactly what the documentation says.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 08 21:05:50 2023 UTC