mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
9975986b7e
Closes GH-5999
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
|