xref: /PHP-8.1/ext/opcache/tests/jit/recv_002.phpt (revision 191fb2a3)
1--TEST--
2JIT RECV: too few arguments
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9;opcache.jit_debug=257
10--EXTENSIONS--
11opcache
12--FILE--
13<?php
14
15function test($a)
16{
17}
18
19test();
20
21?>
22--EXPECTF--
23Fatal 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
24Stack trace:
25#0 %s(7): test()
26#1 {main}
27  thrown in %s on line 3