ID: 47699 Updated by: dmi...@php.net Reported By: rayro at gmx dot de -Status: Open +Status: Closed Bug Type: Class/Object related Operating System: XP PHP Version: 5.3.0beta1 -Assigned To: +Assigned To: dmitry 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: ------------------------------------------------------------------------ [2009-03-18 00:41:14] rayro at gmx dot de Description: ------------ spl_autoload_register does not work with lsb/get_called_class() Reproduce code: --------------- namespace test; class A { static function test($v='') { var_dump(get_called_class()); } } class B extends A { } B::test(); spl_autoload_register(__NAMESPACE__.'\B::test'); new X(); Expected result: ---------------- string(6) "test\B" string(6) "test\B" Fatal error: Class 'test\X' not found in ... on line ... Actual result: -------------- string(6) "test\B" bool(false) Fatal error: Class 'test\X' not found in ... on line ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47699&edit=1