php-src/Zend/tests/bug72107.phpt
2020-09-09 10:47:43 +02:00

17 lines
299 B
PHP

--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