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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user