note 109977 rejected from language.oop5.autoload by aharvey
| From: | aharvey@php.net | Date: | Fri, 07 Sep 2012 13:34:58 +0000 |
| Subject: | note 109977 rejected from language.oop5.autoload by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190571@lists.php.net to get a copy of this message | ||
Note Submitter: ase at asdeee dot co dot uk
----
This is not working as 5.3.9
<?php
function __autoload($name) {
echo "Want to load $name.\n";
throw new Exception("Unable to load $name.");
}
try {
$obj = NonLoadableClass::get();
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>