@@ -3129,7 +3129,8 @@ static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fca
3129
3129
(!fcc -> function_handler -> common .scope ||
3130
3130
!instanceof_function (ce_org , fcc -> function_handler -> common .scope ))) {
3131
3131
if (fcc -> function_handler -> common .fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE ) {
3132
- if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION ) {
3132
+ if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION &&
3133
+ fcc -> function_handler -> common .function_name ) {
3133
3134
zend_string_release (fcc -> function_handler -> common .function_name );
3134
3135
}
3135
3136
zend_free_trampoline (fcc -> function_handler );
@@ -3355,7 +3356,8 @@ static zend_bool zend_is_callable_impl(zval *callable, zend_object *object, uint
3355
3356
((fcc -> function_handler -> common .fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE ) ||
3356
3357
fcc -> function_handler -> type == ZEND_OVERLOADED_FUNCTION_TEMPORARY ||
3357
3358
fcc -> function_handler -> type == ZEND_OVERLOADED_FUNCTION )) {
3358
- if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION ) {
3359
+ if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION &&
3360
+ fcc -> function_handler -> common .function_name ) {
3359
3361
zend_string_release (fcc -> function_handler -> common .function_name );
3360
3362
}
3361
3363
zend_free_trampoline (fcc -> function_handler );
@@ -3413,7 +3415,8 @@ static zend_bool zend_is_callable_impl(zval *callable, zend_object *object, uint
3413
3415
((fcc -> function_handler -> common .fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE ) ||
3414
3416
fcc -> function_handler -> type == ZEND_OVERLOADED_FUNCTION_TEMPORARY ||
3415
3417
fcc -> function_handler -> type == ZEND_OVERLOADED_FUNCTION )) {
3416
- if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION ) {
3418
+ if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION &&
3419
+ fcc -> function_handler -> common .function_name ) {
3417
3420
zend_string_release (fcc -> function_handler -> common .function_name );
3418
3421
}
3419
3422
zend_free_trampoline (fcc -> function_handler );
0 commit comments