xref: /PHP-7.1/Zend/tests/bug72107.phpt (revision 91f59403)
1--TEST--
2Bug #72107: Segfault when using func_get_args as error handler
3--FILE--
4<?php
5set_error_handler('func_get_args');
6function test($a) {
7    echo $undef;
8}
9test(1);
10?>
11--EXPECTF--
12Warning: Cannot call func_get_args() dynamically in %s on line %d
13
14Notice: Undefined variable: undef in %s on line %d
15