http://defect.opensolaris.org/bz/show_bug.cgi?id=19217
Summary: Substantially improve PHP scanners
Classification: Development
Product: opengrok
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
The PHP scanners seem to have been copied from the Perl scanners with a few
modifications. There are several problems:
* They look for features that exist only in Perl (like extra variable prefixes,
PODs).
* They assume the whole file is PHP code, while PHP MUST be introduced with
<?php or some other opening variant
* They don't support string interpolation.
* They don't support HEREDOC/NOWDOC and backquote strings.
* Multi-line strings are not supported
* They don't support phpDoc comments.
* The instanceof keyword is not recognized, nor any constant introduced in PHP
5.4
* Casts are not recognized.
* The definition of labels for symbols is wrong.
I fixed these problems in my fork:
https://bitbucket.org/cataphract/opengrok/compare/php-scanners..7fc6a548dcc7
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev