File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1458,10 +1458,9 @@ static void reflection_type_factory(
1458
1458
intern -> ptr = reference ;
1459
1459
intern -> ref_type = REF_TYPE_TYPE ;
1460
1460
intern -> ce = object_ce ;
1461
+ ZVAL_UNDEF (& intern -> obj );
1461
1462
1462
1463
if (closure_object ) {
1463
- ZVAL_OBJ_COPY (& intern -> obj , closure_object );
1464
-
1465
1464
zend_function * fptr = NULL ;
1466
1465
zend_class_entry * called_scope = NULL ;
1467
1466
zend_object * this_obj = NULL ;
@@ -1473,8 +1472,6 @@ static void reflection_type_factory(
1473
1472
} else {
1474
1473
intern -> ce = fptr -> common .scope ;
1475
1474
}
1476
- } else {
1477
- ZVAL_UNDEF (& intern -> obj );
1478
1475
}
1479
1476
1480
1477
/* Property types may be resolved during the lifetime of the ReflectionType.
@@ -3190,7 +3187,6 @@ ZEND_METHOD(ReflectionRelativeClassType, resolveToNamedType)
3190
3187
3191
3188
/* Unbound closures can have relative class types that we cannot resolve */
3192
3189
if (!intern -> ce ) {
3193
- ZEND_ASSERT (!Z_ISUNDEF (intern -> obj ));
3194
3190
zend_throw_exception_ex (reflection_exception_ptr , 0 ,
3195
3191
"Cannot resolve relative class name for a static closure" );
3196
3192
RETURN_THROWS ();
You can’t perform that action at this time.
0 commit comments