|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28058 __autoload called for every class declaration
Submitted: 2004-04-19 14:52 UTC Modified: 2004-05-01 01:22 UTC
From: alex_boyer at hotmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.0RC1 OS: Windows 2000 Pro
Private report: No CVE-ID: None
 [2004-04-19 14:52 UTC] alex_boyer at hotmail dot com
__autoload is called for every class declaration that extends a parent class, even if the parent declaration file is included.

Reproduce code:
require_once "b.php";
function __autoload($theclass){
	echo "Auto load\n";
$obj = new b();
require_once "a.php";
class b extends a{
	function hello() { echo "B";}
class a{
	function hello() {echo "A";}

Expected result:

Actual result:
Auto load


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-19 20:34 UTC]
Please try using this CVS snapshot:
For Windows:
 [2004-04-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2004-05-01 01:22 UTC] alex_boyer at hotmail dot com
It works with new CVS version.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Mar 03 03:01:24 2021 UTC