xref: /php-src/ext/opcache/tests/jit/assign_050.phpt (revision c16ad918)
1--TEST--
2JIT ASSIGN: incorrect type store elimination
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--FILE--
9<?php
10function foo($a) {
11    $b = $a;
12    $b =! $a = $a + $b & $b & $b = $b = $a = $a + $b & $a += $a;
13    $b = $b = $a = $a + $b & $b & $b = $a = $a + $b = $b = $a = $a + $b = $a += $a;
14}
15
16for ($i = 0; $i < 3; $i++) {
17    @foo(39087589046889428661);
18}
19?>
20DONE
21--EXPECT--
22DONE
23