ID: 13163
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Class/Object related
Operating System: 
PHP Version: 4.0.6
New Comment:

One report per bug please.


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

[2001-09-05 23:51:36] [EMAIL PROTECTED]

There definately seems to be some issues with including or requiring files from within 
other files that have been included in the same fashion.  Say I have a file called 
"test.php" in the docroot that includes "file1.php".

The included file contains some class definitions which inherit from classes defined 
in "file2.php", so at the top of "file1.php" I have:

include_once("file2.php");

This does not seem to work.  It is finding the file correctly, but I receive "Cannot 
inherit from undefined class" errors.  If I manually include "file2.php" within the 
"test.php" file along with the "file1.php", it works fine.

Is this meant to happen, or is it a bug or known issue?

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



Edit this bug report at http://bugs.php.net/?id=13163&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to