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