1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

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

This commit is contained in:
Dmitry Stogov
2006-03-03 10:09:21 +00:00
parent 622347bd8c
commit b32a78c4fa
+5 -1
View File
@@ -1806,7 +1806,11 @@ ZEND_FUNCTION(debug_print_backtrace)
debug_print_backtrace_args(arg_array TSRMLS_CC);
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;
ptr = skip->prev_execute_data;
++indent;