@@ -3068,7 +3068,8 @@ static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fca
3068
3068
(!fcc -> function_handler -> common .scope ||
3069
3069
!instanceof_function (ce_org , fcc -> function_handler -> common .scope ))) {
3070
3070
if (fcc -> function_handler -> common .fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE ) {
3071
- if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION ) {
3071
+ if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION &&
3072
+ fcc -> function_handler -> common .function_name ) {
3072
3073
zend_string_release (fcc -> function_handler -> common .function_name );
3073
3074
}
3074
3075
zend_free_trampoline (fcc -> function_handler );
@@ -3240,7 +3241,8 @@ ZEND_API zend_bool zend_is_callable_ex(zval *callable, zend_object *object, uint
3240
3241
((fcc -> function_handler -> common .fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE ) ||
3241
3242
fcc -> function_handler -> type == ZEND_OVERLOADED_FUNCTION_TEMPORARY ||
3242
3243
fcc -> function_handler -> type == ZEND_OVERLOADED_FUNCTION )) {
3243
- if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION ) {
3244
+ if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION &&
3245
+ fcc -> function_handler -> common .function_name ) {
3244
3246
zend_string_release (fcc -> function_handler -> common .function_name );
3245
3247
}
3246
3248
zend_free_trampoline (fcc -> function_handler );
@@ -3327,7 +3329,8 @@ ZEND_API zend_bool zend_is_callable_ex(zval *callable, zend_object *object, uint
3327
3329
((fcc -> function_handler -> common .fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE ) ||
3328
3330
fcc -> function_handler -> type == ZEND_OVERLOADED_FUNCTION_TEMPORARY ||
3329
3331
fcc -> function_handler -> type == ZEND_OVERLOADED_FUNCTION )) {
3330
- if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION ) {
3332
+ if (fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION &&
3333
+ fcc -> function_handler -> common .function_name ) {
3331
3334
zend_string_release (fcc -> function_handler -> common .function_name );
3332
3335
}
3333
3336
zend_free_trampoline (fcc -> function_handler );
0 commit comments