From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      4.0.6
PHP Bug Type:     Class/Object related
Bug description:  Problems with including from within included files

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:


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 bug report at:

PHP Development Mailing List <>
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