php-src/Zend/tests/catch.phpt
2017-02-03 18:52:57 +01:00

24 lines
289 B
PHP

--TEST--
catch shouldn't call __autoload
--FILE--
<?php
spl_autoload_register(function ($name) {
echo("AUTOLOAD '$name'\n");
eval("class $name {}");
});
try {
} catch (A $e) {
}
try {
throw new Exception();
} catch (B $e) {
} catch (Exception $e) {
echo "ok\n";
}
?>
--EXPECT--
ok