summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72107.phpt
blob: f65b1422691fc581efeafd853a605d9911176d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #72107: Segfault when using func_get_args as error handler
--FILE--
<?php
set_error_handler('func_get_args');
function test($a) {
    echo $undef;
}
try {
    test(1);
} catch (\Error $e) {
    echo $e->getMessage();
}
?>
--EXPECT--
func_get_args() expects exactly 0 arguments, 4 given