|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-25 10:39 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
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 ...