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

Close

#4747 Function list fails for PHP class with character '{' without '}'

5.5.x
open
nobody
5
2014-08-31
2014-03-27
Skrol29
No

The Function List panel displays absolutely no items in the following circumstances :

If the file contains a PHP class, and if this class contains a method prefixed with private , public, static or protected, and if this method contains a PHP string with the character '{' but no '}'.

Example :

<?php
// THIS FILE IS NOT PARSED BY THE FUNCTION LIST PANEL
class ILoveYouNotePadPlusPlus {
    public function iLoveYouToo() {
        $x = 'a{a';
    }
}

If I replace the keyword public with private or protected or static then file is still not parsed in the Function List panel.

If I delete the keyword public then file is correctly parsed in the Function List panel.

If I replace '{' with '{}' then file is correctly parsed in the Function List panel.

If I replace '{' with '}' then file is correctly parsed in the Function List panel.

I hope this bug will be fixed soon because this Function List feature is really useful and this bug circumstances are not so rare.

Discussion

  • Skrol29
    Skrol29
    2014-03-27

    A string with the character '}' but without the character '{' has another effects: the Function List displays the class structure before this line, and displays nothing for the code after this line.