xref: /php-src/ext/opcache/tests/jit/assign_048.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
8opcache.optimization_level=0x7FFEBFFF
9--FILE--
10<?php
11function test(){
12    $j = 0;
13    for($i=0; $i<10; $i++) {
14        +$b = +$b = unserialize('');
15        $y[] = 4;
16        $a + ~$b = $j++;
17     }
18}
19test();
20?>
21DONE
22--EXPECTF--
23Warning: Undefined variable $a in %sassign_048.php on line 7
24
25Warning: Undefined variable $a in %sassign_048.php on line 7
26
27Warning: Undefined variable $a in %sassign_048.php on line 7
28
29Warning: Undefined variable $a in %sassign_048.php on line 7
30
31Warning: Undefined variable $a in %sassign_048.php on line 7
32
33Warning: Undefined variable $a in %sassign_048.php on line 7
34
35Warning: Undefined variable $a in %sassign_048.php on line 7
36
37Warning: Undefined variable $a in %sassign_048.php on line 7
38
39Warning: Undefined variable $a in %sassign_048.php on line 7
40
41Warning: Undefined variable $a in %sassign_048.php on line 7
42DONE
43