ID:               37833
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rafael dot amador at gmail dot com
-Status:           Closed
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows XP
 PHP Version:      5.1.4


Previous Comments:
------------------------------------------------------------------------

[2006-06-18 00:13:14] rafael dot amador at gmail dot com

sorry i did a mistake

------------------------------------------------------------------------

[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

Reply via email to