This yet again illustrates the sillyness of autoload, if we are going to
have a feature that autoloads classes it should be explicit in it's
usage:
autoload("Class_Name");
defaults to loading Class_Name.php ?
if __autoload exists, it calls that..
adding all sorts of magic to the Class operators
Hi James,
On Tuesday 28 June 2005 23:32, James Crumpton wrote:
> function __autoload($name) {
> require_once($name);
> }
> I just don't understand the logic behind throwing a fatal error when I'm
> writing code to try and prevent one from occurring.
You should add error checking to your
I opened a bug (http://bugs.php.net/bug.php?id=33459) to report an issue with
the default behavior of class_exists calling __autoload in PHP5. The bug was
marked as bogus, and basically stated that it's PEARs problem. After responding,
the bug can now longer be searched for.
I believe this still