--TEST-- GH-18038 005: Lazy proxy calls magic methods twice --FILE-- $name['']); } } $rc = new ReflectionClass(C::class); $obj = $rc->newLazyProxy(function () { echo "init\n"; return new C; }); var_dump(isset($obj->prop[''])); ?> --EXPECT-- string(10) "C::__isset" init bool(false)