Re: [PHP-DEV] class_exists and __autoload

2005-06-28 Thread Alan Knowles
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

Re: [PHP-DEV] class_exists and __autoload

2005-06-28 Thread Johannes Schlueter
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