Version: SVN (using KDE 4.4.4) OS: Linux A class should be accessible through a variable which contains its name as a string. However, calling its method through such a variable results in the parser reporting a syntax error. An example: <?php class A { public static function foo () { return "bar"; } } $cls = 'A'; $bar = $cls::foo(); // assigns "bar" to $bar - syntax error on "::" ?> Reproducible: Always
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
I do not use KDevelop or PHP anymore, but the steps for reproduction seem simple enough for anyone to follow. Thanks for returning to this old issue!
Thanks for the update!
This no longer causes a syntax error for me on kdev-php 5.3