1--TEST-- 2JIT ASSIGN: memory leak 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.protect_memory=1 8--FILE-- 9<?php 10class Test { 11 public string $x; 12} 13$test=new Test; 14$test->x = " $y "; 15$r = &$test->x + ($r = $y); 16?> 17--EXPECTF-- 18Warning: Undefined variable $y in %sassign_053.php on line 6 19 20Warning: Undefined variable $y in %sassign_053.php on line 7 21 22Fatal error: Uncaught TypeError: Cannot assign null to reference held by property Test::$x of type string in %sassign_053.php:7 23Stack trace: 24#0 {main} 25 thrown in %sassign_053.php on line 7