ID: 31318
Comment by: the_deppchef at hotmail dot com
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: Irrelevant
PHP Version: 5CVS-2004-12-28 (dev)
New Comment:
I get this strange Error:
Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in
/home/tdc/test.php on line 9
(PHP 5.0.3)
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