File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1429,10 +1429,9 @@ static void reflection_type_factory(
1429
1429
intern -> ptr = reference ;
1430
1430
intern -> ref_type = REF_TYPE_TYPE ;
1431
1431
intern -> ce = object_ce ;
1432
+ ZVAL_UNDEF (& intern -> obj );
1432
1433
1433
1434
if (closure_object ) {
1434
- ZVAL_OBJ_COPY (& intern -> obj , closure_object );
1435
-
1436
1435
zend_function * fptr = NULL ;
1437
1436
zend_class_entry * called_scope = NULL ;
1438
1437
zend_object * this_obj = NULL ;
@@ -1444,8 +1443,6 @@ static void reflection_type_factory(
1444
1443
} else {
1445
1444
intern -> ce = fptr -> common .scope ;
1446
1445
}
1447
- } else {
1448
- ZVAL_UNDEF (& intern -> obj );
1449
1446
}
1450
1447
1451
1448
/* Property types may be resolved during the lifetime of the ReflectionType.
@@ -3161,7 +3158,6 @@ ZEND_METHOD(ReflectionRelativeClassType, resolveToNamedType)
3161
3158
3162
3159
/* Unbound closures can have relative class types that we cannot resolve */
3163
3160
if (!intern -> ce ) {
3164
- ZEND_ASSERT (!Z_ISUNDEF (intern -> obj ));
3165
3161
zend_throw_exception_ex (reflection_exception_ptr , 0 ,
3166
3162
"Cannot resolve relative class name for a static closure" );
3167
3163
RETURN_THROWS ();
You can’t perform that action at this time.
0 commit comments