I am using __autoload() which simply looks like this:
function __autoload($class_name) {
require_once($class_name . '.class.php');
}
When the error reporting is E_ALL
it works fine. The class is loaded, and the script runs without errors.
When the error reporting is E_ALL | E_STRICT
, no pages work, I simply get:
"Fatal error: Class 'NameOfClass' not found in \path\to\current\script on line 0"
Why? Is this expected behaviour when using __autoload() or is it a problem with my script?