xref: /PHP-8.4/ext/opcache/tests/jit/recv_002.phpt (revision c16ad918)
1--TEST--
2JIT RECV: too few arguments
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8;opcache.jit_debug=257
9--EXTENSIONS--
10opcache
11--FILE--
12<?php
13
14function test($a)
15{
16}
17
18test();
19
20?>
21--EXPECTF--
22Fatal error: Uncaught ArgumentCountError: Too few arguments to function test(), 0 passed in %srecv_002.php on line 7 and exactly 1 expected in %s:3
23Stack trace:
24#0 %s(7): test()
25#1 {main}
26  thrown in %s on line 3