mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-29 11:55:42 +00:00
Fixed debug_backtrace
This commit is contained in:
1 parent
760fe72af6
commit
0907f22bbd
1 file changed
+3
-1
@@ -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