ID: 26802 Updated by: [EMAIL PROTECTED] Reported By: adam at trachtenberg dot com -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: * PHP Version: 5.0.0b3 (beta3) New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-01-05 17:03:57] adam at trachtenberg dot com Description: ------------ You cannot dynamically call a static methods using a variable. This works for regular functions, for example: function foo() {} $f = 'foo'; $f(); Reproduce code: --------------- class foo { static public function bar() { print "baz\n"; } } foo::bar(); $static_method = "foo::bar"; $static_method(); Expected result: ---------------- baz baz Actual result: -------------- PHP Fatal error: Call to undefined function foo::bar() in /php/test.php on line 10 baz ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26802&edit=1