PHP 4.0 Bug #6418: Multiple class extends ordering error

From: Date: Tue, 29 Aug 2000 16:20:10 +0000
Subject: PHP 4.0 Bug #6418: Multiple class extends ordering error
Groups: php.dev 
Request: Send a blank email to php-dev+get-31089@lists.php.net to get a copy of this message
From: nathan@cjhunter.com Operating system: Linux 2.0.36 PHP version: 4.0.1pl2 PHP Bug Type: Scripting Engine problem Bug description: Multiple class extends ordering error Multiple class extends creates ordering error The below.. <? class c extends b {} class b extends a {} class a {} ?> gives an error 'Fatal error: Class c: Cannot inherit from undefined class b in test.html on line 4', but.. <? class b extends a {} class a {} // class c moved to bottom class c extends b {} ?> works fine. I imagine this could be fixed by first ordering the classes by their given dependencies and then process them one by one.

« previous php.dev (#31089) next »