mirror of
https://github.com/php/php-src.git
synced 2024-12-25 09:49:08 +08:00
26 lines
368 B
Plaintext
26 lines
368 B
Plaintext
|
--TEST--
|
||
|
Bug #71163 (Segmentation Fault (cleanup_unfinished_calls))
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function __autoload($name) {
|
||
|
eval ("class $name extends Exception { public static function foo() {}}");
|
||
|
throw new Exception("boom");
|
||
|
}
|
||
|
|
||
|
function test2() {
|
||
|
try {
|
||
|
Test::foo();
|
||
|
} catch (Exception $e) {
|
||
|
echo "okey";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function test() {
|
||
|
test2();
|
||
|
}
|
||
|
|
||
|
test();
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
okey
|