Hi Dan,
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.
If you used my sample correctly you should get the same result and the
cause is already explained by Derick.
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.
Sorry but this is not true, check the manual:
"Files for including are first looked for in each include_path entry
relative to the current working directory, and then in the directory of
current script."
Best Regards,
Felhő
p.s.: I run into this problem using amfphp which overwrites the error
handler with a function which simply convert the error to an excepton.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php