17 lines
299 B
PHP
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
|