mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
Only do this in debug build
This commit is contained in:
parent
865a719a3f
commit
f25419f8e3
@ -63,7 +63,9 @@ ZEND_METHOD(Closure, __invoke) /* {{{ */
|
|||||||
/* destruct the function also, then - we have allocated it in get_method */
|
/* destruct the function also, then - we have allocated it in get_method */
|
||||||
zend_string_release(func->internal_function.function_name);
|
zend_string_release(func->internal_function.function_name);
|
||||||
efree(func);
|
efree(func);
|
||||||
EX(func) = NULL;
|
#if ZEND_DEBUG
|
||||||
|
execute_data->func = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
@ -934,7 +934,9 @@ ZEND_API void zend_std_call_user_call(INTERNAL_FUNCTION_PARAMETERS) /* {{{ */
|
|||||||
|
|
||||||
/* destruct the function also, then - we have allocated it in get_method */
|
/* destruct the function also, then - we have allocated it in get_method */
|
||||||
efree_size(func, sizeof(zend_internal_function));
|
efree_size(func, sizeof(zend_internal_function));
|
||||||
|
#if ZEND_DEBUG
|
||||||
execute_data->func = NULL;
|
execute_data->func = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
@ -1155,7 +1157,9 @@ ZEND_API void zend_std_callstatic_user_call(INTERNAL_FUNCTION_PARAMETERS) /* {{{
|
|||||||
|
|
||||||
/* destruct the function also, then - we have allocated it in get_method */
|
/* destruct the function also, then - we have allocated it in get_method */
|
||||||
efree_size(func, sizeof(zend_internal_function));
|
efree_size(func, sizeof(zend_internal_function));
|
||||||
|
#if ZEND_DEBUG
|
||||||
execute_data->func = NULL;
|
execute_data->func = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user