|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-07-09 23:28 UTC] cmbecker69 at gmx dot de
[2013-07-10 03:21 UTC] laruence@php.net
-Status: Open
+Status: Not a bug
[2013-07-10 03:21 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 03:00:01 2025 UTC |
Description: ------------ PHP is generating a fatal error when a class that inherit from another is getting instantiated and these classes are defined after being instantiated. If the class does not inherit PHP run the code without errors. Test script: --------------- <?php $a = new Aa(); $a->hi(); class Aa extends Bb { } class Bb { public function hi() { echo('hi Aa'); } } Expected result: ---------------- hi Aa Actual result: -------------- PHP Fatal error: Class 'Aa' not found in /home/www/test.php on line 3