From fdd1f74e37e1256c96b8626666a81738db0ebdc7 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 25 Feb 2014 17:11:55 +0400 Subject: [PATCH] Fixed debug backtrace --- Zend/zend_builtin_functions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 0fe929627a..3add55afe6 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -2058,7 +2058,9 @@ ZEND_FUNCTION(debug_print_backtrace) 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) { if (Z_TYPE(ptr->object) != IS_UNDEF) { -- 2.50.1