summaryrefslogtreecommitdiff
path: root/Zend/tests/bug64966.phpt
blob: 0d610ce2ff09d6c4a37e261ad6d802e9950bff87 (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
26
27
28
29
--TEST--
Bug #64966 (segfault in zend_do_fcall_common_helper_SPEC)
--FILE--
<?php
function test($func) {
    try {
        $a = $func("");
    } catch (Error $e) {
        throw new Exception();
    }
    return true;
}
class A {
    public function b() {
        test("strlen");
        test("iterator_apply");
    }
}

$a = new A();
$a->b();
?>
--EXPECTF--
Fatal error: Uncaught Exception in %sbug64966.php:6
Stack trace:
#0 %sbug64966.php(13): test('iterator_apply')
#1 %sbug64966.php(18): A->b()
#2 {main}
  thrown in %sbug64966.php on line 6