Bug #13163: Problems with including from within included files
| From: | colin at maven dot com dot au | Date: | Thu, 06 Sep 2001 03:51:36 +0000 |
| Subject: | Bug #13163: Problems with including from within included files | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-65204@lists.php.net to get a copy of this message | ||
From: colin@maven.com.au
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:
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 bug report at: http://bugs.php.net/?id=13163&edit=1