1--TEST-- 2ASSIGN_OP 001: Incorrect optimization of ASSIGN_OP may lead to memory leak 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.optimization_level=-1 7--FILE-- 8<?php 9function test() { 10 for ($i = 0; $i < 10; $i++) { 11 $a = $a += $a < true; 12 $a += $a; 13 $a = []; 14 $a['b'] += 1; 15 } 16} 17test(); 18?> 19--EXPECTF-- 20Warning: Undefined variable $a in %sassign_op_001.php on line 4 21 22Warning: Undefined variable $a in %sassign_op_001.php on line 4 23 24Warning: Undefined array key "b" in %sassign_op_001.php on line 7 25 26Fatal error: Uncaught TypeError: Unsupported operand types: array + bool in %sassign_op_001.php:4 27Stack trace: 28#0 %sassign_op_001.php(10): test() 29#1 {main} 30 thrown in %sassign_op_001.php on line 4 31