mirror of
https://github.com/php/php-src.git
synced 2024-11-30 05:13:56 +08:00
Remove "called at [(null):0]" from debug backtrace
This commit is contained in:
parent
1ed7db0e3b
commit
62de2d7366
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user