1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-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