xref: /PHP-8.2/ext/opcache/tests/jit/recv_004.phpt (revision 73d5f43d)
1--TEST--
2JIT RECV: default arguments with type checks
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
14function test(int $a = 1, int $b = 2)
15{
16	var_dump($a, $b);
17}
18test(3);
19?>
20--EXPECT--
21int(3)
22int(2)
23