xref: /PHP-8.2/ext/opcache/tests/jit/assign_045.phpt (revision a5f78217)
1--TEST--
2JIT ASSIGN: incorrect assumption about in-memory zval type
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11function test($x, $y) {
12    $a = $b = $a = $y;
13    var_dump($a + $x);
14}
15test(null, 1);
16?>
17--EXPECT--
18int(1)
19
20