|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-27 12:31 UTC] krakjoe@php.net
-Package: Class/Object related
+Package: Scripting Engine problem
[2016-07-15 09:23 UTC] dmitry@php.net
-Status: Open
+Status: Not a bug
[2016-07-15 09:23 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 05:00:01 2026 UTC |
Description: ------------ First, please, see test script. One problem is that it is harder to debug (as the error points to existing class in same file). Second (and main in my case) that autoload for class C is not working. The workaround is to switch "extends" lines and it will work as expected for both problems. This bug makes our php code generator more complicated. Test script: --------------- <?php class A extends B{} class B extends C{} $a = new A(); Expected result: ---------------- Fatal error: Class 'C' not found in /tmp/test.php on line 3 Actual result: -------------- Fatal error: Class 'B' not found in /tmp/test.php on line 2