php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46084 PHP needs a source code analyzer
Submitted: 2008-09-15 17:23 UTC Modified: 2010-12-20 12:38 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: kevin dot benton at beatport dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.6 OS: All
Private report: No CVE-ID: None
 [2008-09-15 17:23 UTC] kevin dot benton at beatport dot com
Description:
------------
PHP needs a really good source code analyzer to report common problems in PHP code (i.e. defaulted parameters before required parameters).  Having such a feature makes it easier for new PHP developers to see where problematic code may lie, as well as providing some good best-practices guidelines.

I really like the way perltidy does this for Perl code.  What's really neat about perltidy is it allows you to help it understand what best practices you want to enforce and what best practices you want to ignore or modify.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-15 23:50 UTC] johannes@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This is no feature to be done by the "core" group of developers, it's better to be done in userland PHP, there are projects like php under control or zend code analyzer as part of zend ide or soem other solutions .... or feel free to implement your own (and become famous)
 [2008-09-16 18:15 UTC] kevin dot benton at beatport dot com
"your problem does not imply a bug in PHP itself"

I didn't file a bug, I filed a feature / change request.  I'm also not asking a support question - I want to see an improvement to PHP though I don't have time to write a PHP SCA myself or I'd have already done it and contributed it back.  I'm sorry to see that the core team doesn't see value in taking this on.
 [2010-12-20 12:38 UTC] jani@php.net
-Package: Tidy +Package: *General Issues
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 23:01:33 2025 UTC