1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/ext/opcache/tests/jit/recursive_wrong_args.phpt
2024-01-15 09:39:13 +01:00

20 lines
349 B
PHP

--TEST--
Recursive call with too few args
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
--FILE--
<?php
function f($arg) {
f();
}
try {
f();
} catch (ArgumentCountError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECTF--
Too few arguments to function f(), 0 passed in %s on line %d and exactly 1 expected