1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 04:02:19 +02:00
Files
archived-php-src/Zend/tests/bug72107.phpt
2019-08-23 20:01:51 +02:00

17 lines
286 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--
Cannot call func_get_args() dynamically