1--TEST-- 2JIT ASSIGN_OBJ: Assign property on null 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7--EXTENSIONS-- 8opcache 9--FILE-- 10<?php 11function test1($o) { 12 $o->x = new stdClass; 13} 14function test2($o) { 15 $o->x += new stdClass; 16} 17 18try { 19 test1(null); 20} catch (Error $e) { 21 echo $e->getMessage(), "\n"; 22} 23 24try { 25 test2(null); 26} catch (Error $e) { 27 echo $e->getMessage(), "\n"; 28} 29 30?> 31--EXPECT-- 32Attempt to assign property "x" on null 33Attempt to assign property "x" on null 34