summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72107.phpt
blob: b37ecf0849a48de935370cc094c6daf661d6b607 (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 parameters, 4 given