summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71163.phpt
blob: 71470027ba44bae69add4df79f86214d3bde5342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #71163 (Segmentation Fault (cleanup_unfinished_calls))
--FILE--
<?php
spl_autoload_register(function ($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