1--TEST-- 2JIT: FETCH_OBJ 008 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.jit_buffer_size=1M 8--FILE-- 9<?php 10class A { 11 public string $prop = ""; 12} 13 14class B { 15 public function __toString() { 16 global $a; 17 $a->prop = "A $e B"; 18 $a->prop->prop . $a->prop = "C"; 19 return "test"; 20 } 21} 22 23$a = new A; 24$a->prop = new B; 25?> 26DONE 27--EXPECTF-- 28Warning: Undefined variable $e in %sfetch_obj_008.php on line 9 29 30Warning: Attempt to read property "prop" on string in %sfetch_obj_008.php on line 10 31DONE 32