Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#536 [FunctionList] Fixed PHP regex

Next_major_release
closed
nobody
None
6
2013-12-15
2013-11-06
Geoffray
No

I upgraded the PHP syntax parsing rules :

  • final classes/methods were not correctly parsed
  • there was a typo error ("implement" in stead of "implements")
  • when declaring a method, PHP does not force a specific order for keywords public,private,static,... So "private static function" or "static private function" are both permitted but the 2nd one was not correctly parsed
  • replaced [\t ] by [\s] because "\s" contains both spaces and tabs
  • unused "struct" keyword (doesn't exists in PHP)
  • unused "~" character (usually used for destructors, but not in PHP)
1 Attachments

Discussion

  • Don HO
    Don HO
    2013-12-04

    • status: open --> accepted
    • Priority: 5 --> 6
     
  • Don HO
    Don HO
    2013-12-15

    • Status: accepted --> closed