1--TEST-- 2oss-fuzz #71407 3--FILE-- 4<?php 5 6class C { 7 public $x=x; 8} 9 10$reflector = new ReflectionClass(C::class); 11 12try { 13 $obj = $reflector->newLazyGhost(function() {}); 14 clone $obj; 15} catch (Error $e) { 16 printf("%s: %s\n", $e::class, $e->getMessage()); 17} 18 19 20?> 21--EXPECT-- 22Error: Undefined constant "x" 23