1--TEST--
2Register Alloction 006: Incorrect type store elimination
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9function foo() {
10	$a = 0;
11    for($i=0; $i < 6; $i++) {
12        $y - $b = $a ? $b : $y;
13        $a = $b = 7;
14     }
15}
16foo()
17?>
18DONE
19--EXPECTF--
20Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
21
22Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
23
24Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
25
26Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
27
28Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
29
30Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
31
32Warning: Undefined variable $y in %sreg_alloc_006.php on line 5
33DONE