Hi Gergely:
> You totally missed the point. Please try the code first. I didn't write
> but I thought that it is obvious that the files are in the same directory.
The error was clear: the file containing the class foo was not found. But
before I made my post, I did run your test, just to make sure. It worked
fine[1] -- because my include_path is set to look at the current
directory first.
Just because something is in the same directory doesn't mean it gets
included first. If the path is not specified (either by fully qualified
path (/var/www/test) or by relative path (./) the include_path is used.
The include path can specify that locations other than the current
directory are searched first. If you add the following in your
bootstrap.php I suspect you'll find that to be the case.
echo '<p>' . ini_get('include_path') . "</p>\n";
Good luck,
--Dan
[1] error_handler: Use of undefined constant oops_i_left_the_quotes -
assumed 'oops_i_left_the_quotes'
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php