#37833 [Opn->Csd]: __autoload not invoked recursively for parent classes

From: Date: Sun, 18 Jun 2006 00:13:14 +0000
Subject: #37833 [Opn->Csd]: __autoload not invoked recursively for parent classes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98443@lists.php.net to get a copy of this message
ID: 37833 User updated by: rafael dot amador at gmail dot com Reported By: rafael dot amador at gmail dot com -Status: Open +Status: Closed Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5.1.4 New Comment: sorry i did a mistake Previous Comments: ------------------------------------------------------------------------ [2006-06-17 19:01:01] rafael dot amador at gmail dot com Description: ------------ in PHP Version 5.1.4 (ISAPI) / IIS 5.1 ... i've 4 files: ---------------------------------------------------------- 1.- menu.php - the user interface php page since i'm including "config.php", here exist a line named "$ses = new session();" the file isn't included but i hope that __autoload find it. 2.- config.php - a declared __autoload function exists to search all my posibles file paths. 3.- session.php - session class resides here but is descendant from a class named DBConn in this form: class session extends DBConn{ ... } the include to DBConn.php isn't present (hoping that __autoload find it again). 4.- DBConn.php - where the parent class resides. class DBConn{ ... } -------------------------------------------------------- where i call "$ses = session();" the session seccessfully loads session.php but doesn't find the parent class file. i put some echo("") to the __autoload function to see if this function is loaded recursively, but it doesn't. now my question is ... is a bug or i'm doing something wrong! Expected result: ---------------- to load my entire script without error Actual result: -------------- Fatal error: Class 'DBConn' not found in X:\Inetpub\wwwroot\...\scripts\server\session.php on line 31 Fatal error: Class 'session' not found in X:\Inetpub\wwwroot\...\menu.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37833&edit=1

« previous php.bugs (#98443) next »