Bug #13163 Updated: Problems with including from within included files

From: Date: Thu, 06 Sep 2001 15:00:49 +0000
Subject: Bug #13163 Updated: Problems with including from within included files
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65243@lists.php.net to get a copy of this message
ID: 13163 Updated by: sniper Reported By: colin@maven.com.au 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] colin@maven.com.au 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

« previous php.dev (#65243) next »