mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
zend_builtin_functions: Do not allocate to store name of FLF when fetching backtrace (#19842)
This commit is contained in:
@@ -1991,8 +1991,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
|
||||
}
|
||||
stack_frame = zend_new_array(8);
|
||||
zend_hash_real_init_mixed(stack_frame);
|
||||
zend_string *name = func->common.function_name;
|
||||
ZVAL_STRINGL(&tmp, ZSTR_VAL(name), ZSTR_LEN(name));
|
||||
ZVAL_STR_COPY(&tmp, func->common.function_name);
|
||||
_zend_hash_append_ex(stack_frame, ZSTR_KNOWN(ZEND_STR_FUNCTION), &tmp, 1);
|
||||
/* Steal file and line from the previous frame. */
|
||||
if (call->func && ZEND_USER_CODE(call->func->common.type)) {
|
||||
|
||||
Reference in New Issue
Block a user