|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-19 20:34 UTC] helly@php.net
[2004-04-27 01:00 UTC] php-bugs at lists dot php dot net
[2004-05-01 01:22 UTC] alex_boyer at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 22:00:01 2025 UTC |
Description: ------------ __autoload is called for every class declaration that extends a parent class, even if the parent declaration file is included. Reproduce code: --------------- index.php: require_once "b.php"; function __autoload($theclass){ echo "Auto load\n"; require_once($theclass.".php"); } $obj = new b(); $obj->hello(); b.php: require_once "a.php"; class b extends a{ function hello() { echo "B";} } a.php: class a{ function hello() {echo "A";} } Expected result: ---------------- B Actual result: -------------- Auto load B