Remove "called at [(null):0]" from debug backtrace

This commit is contained in:
Dmitry Stogov 2006-03-03 10:09:35 +00:00
parent 1ed7db0e3b
commit 62de2d7366

View File

@ -1892,7 +1892,11 @@ ZEND_FUNCTION(debug_print_backtrace)
debug_print_backtrace_args(arg_array TSRMLS_CC); debug_print_backtrace_args(arg_array TSRMLS_CC);
zval_ptr_dtor(&arg_array); zval_ptr_dtor(&arg_array);
} }
zend_printf(") called at [%s:%d]\n", filename, lineno); if (filename) {
zend_printf(") called at [%s:%d]\n", filename, lineno);
} else {
ZEND_PUTS(")\n");
}
include_filename = filename; include_filename = filename;
ptr = skip->prev_execute_data; ptr = skip->prev_execute_data;
++indent; ++indent;