Hi there,
I'm experiencing this majorly annoying problem with PHP 4.0.6. It's probably something really simple. 🙂
Anyway, what I'm doing, or trying to do, is this. I have a file, called "test.php", to be opened from the docroot. "test.php" includes a file called "lib.php" - this works fine. "lib.php" defines a whole lot of object classes, some of which are extended from classes defined in "lib2.php".
Here's the problem. If I have this in "test.php":
include("lib.php");
include("lib2.php");
...everything is fine.
However, if I have:
include("lib.php");
...in "test.php", and:
include_once("lib2.php");
...in "lib.php", it DOES NOT work. I receive an "cannot inherit from undefined class" error. I know the file is being included, however, because there is an entry for it in the get_required_files() array.
What am I doing wrong? Does this make any sense?