php-src/Zend/tests/catch.phpt

24 lines
289 B
Plaintext
Raw Normal View History

--TEST--
catch shouldn't call __autoload
--FILE--
<?php
2017-01-31 05:28:17 +08:00
spl_autoload_register(function ($name) {
echo("AUTOLOAD '$name'\n");
eval("class $name {}");
2017-01-31 05:28:17 +08:00
});
try {
} catch (A $e) {
}
try {
throw new Exception();
} catch (B $e) {
} catch (Exception $e) {
echo "ok\n";
}
?>
--EXPECT--
ok