|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-09-06 11:00 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
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?