1--TEST--
2ASSIGN_OP 001: Incorrect optimization of ASSIGN_OBJ 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    $a .= $a += $y;
11    $a = $a->y = '';
12}
13test();
14?>
15--EXPECTF--
16Warning: Undefined variable $y in %sassign_obj_001.php on line 3
17
18Warning: Undefined variable $a in %sassign_obj_001.php on line 3
19
20Fatal error: Uncaught Error: Attempt to assign property "y" on string in %sassign_obj_001.php:4
21Stack trace:
22#0 %sassign_obj_001.php(6): test()
23#1 {main}
24  thrown in %sassign_obj_001.php on line 4
25