mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
24 lines
275 B
Plaintext
24 lines
275 B
Plaintext
|
--TEST--
|
||
|
catch shouldn't call __autoload
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function __autoload($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
|