1--TEST-- 2GH-10635: Function JIT causes impossible assertion 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7--FILE-- 8<?php 9trait T { 10 function foo() { 11 return reset($this->a); 12 } 13} 14class C { 15 use T; 16 private array $a = [1]; 17} 18$o = new C; 19$o->foo(); 20unset($o); 21$o = new C; 22$o->foo(); 23unset($o); 24?> 25DONE 26--EXPECT-- 27DONE 28