]> granicus.if.org Git - php/commitdiff
Fixed debug backtrace
authorDmitry Stogov <dmitry@zend.com>
Tue, 25 Feb 2014 13:11:55 +0000 (17:11 +0400)
committerDmitry Stogov <dmitry@zend.com>
Tue, 25 Feb 2014 13:11:55 +0000 (17:11 +0400)
Zend/zend_builtin_functions.c

index 0fe929627a7d8f34ccc004650f6ed4677fbc1b95..3add55afe6d5e112d18577fbd84aa8d58211b7ff 100644 (file)
@@ -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) {