com php-src: Fixed debug backtrace: Zend/zend_builtin_funct ions.c
| From: | Dmitry Stogov | Date: | Tue, 25 Feb 2014 13:11:55 +0000 |
| Subject: | com php-src: Fixed debug backtrace: Zend/zend_builtin_funct ions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77923@lists.php.net to get a copy of this message | ||
Commit: fdd1f74e37e1256c96b8626666a81738db0ebdc7
Author: Dmitry Stogov <dmitry@zend.com> Tue, 25 Feb 2014 17:11:55 +0400
Parents: c077742b2a5c6d2a640ce64e76b0edc95ed5c74c
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fdd1f74e37e1256c96b8626666a81738db0ebdc7
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 0fe9296..3add55a 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) {