com php-src: Fixed debug_backtrace: Zend/zend_builtin _functions.c
| From: | Dmitry Stogov | Date: | Mon, 24 Feb 2014 13:29:45 +0000 |
| Subject: | com php-src: Fixed debug_backtrace: Zend/zend_builtin _functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77953@lists.php.net to get a copy of this message | ||
Commit: 0907f22bbd161bde20d6c91b1b6451da4ef423bb
Author: Dmitry Stogov <dmitry@zend.com> Mon, 24 Feb 2014 17:29:45 +0400
Parents: 760fe72af6733de6415d4c185f2e0fa395aec68d
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0907f22bbd161bde20d6c91b1b6451da4ef423bb
Log:
Fixed debug_backtrace
Changed paths:
M Zend/zend_builtin_functions.c
Diff:
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 4595e52..865e0d5 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -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);