ID: 31318
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Feedback
Bug Type: Feature/Change Request
Operating System: Irrelevant
PHP Version: 5CVS-2004-12-28 (dev)
New Comment:
ReflectionAPI?
Previous Comments:
------------------------------------------------------------------------
[2004-12-28 10:35:24] [EMAIL PROTECTED]
Description:
------------
Static members of a class should be accessible even if the classname is
stored in a variable.
Reproduce code:
---------------
<?php
class Foo {
public static function bar() {
print 'Foo::bar()';
}
}
$class = 'Foo';
$class::bar();
?>
Expected result:
----------------
Foo::bar()
Actual result:
--------------
Parse error: parse error in D:\foo.php on line 9
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31318&edit=1