mirror of
https://github.com/php/php-src.git
synced 2026-10-29 02:07:35 +08:00
Add directories for tests relating to - `break` statements - functions with by-ref returns - `class_exists()` - dynamic properties - error handlers - error suppression with `@` - `get_object_vars()` - `highlight_string()` and `highlight_file()` - interfaces - `is_callable()` - iterators - shutdown functions - streams As well as organizing a couple of tests into existing sub directories along the way Work towards GH-15631
17 lines
346 B
PHP
17 lines
346 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 (\Throwable $e) {
|
|
echo $e::class, ': ', $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
ArgumentCountError: func_get_args() expects exactly 0 arguments, 4 given
|