mirror of
https://github.com/php/php-src.git
synced 2026-04-12 02:23:18 +02:00
Fixed debug_backtrace
This commit is contained in:
@@ -2235,7 +2235,9 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
|
||||
Z_OBJCE(ptr->object) :
|
||||
ptr->function_state.function->common.scope,
|
||||
ptr->function_state.function)->val :
|
||||
ptr->function_state.function->common.function_name->val;
|
||||
(ptr->function_state.function->common.function_name ?
|
||||
ptr->function_state.function->common.function_name->val :
|
||||
NULL);
|
||||
|
||||
if (function_name) {
|
||||
add_assoc_string_ex(&stack_frame, "function", sizeof("function")-1, (char*)function_name, 1);
|
||||
|
||||
Reference in New Issue
Block a user