mirror of
https://github.com/php/php-src.git
synced 2026-04-02 05:32:28 +02:00
- Fix bug #28054 by preventing printing out bogus information in backtrace
when in error handler (still doesn't know all information but at least it's not bogus)
This commit is contained in:
@@ -1621,7 +1621,7 @@ ZEND_FUNCTION(debug_print_backtrace)
|
||||
zval_ptr_dtor(&arg_array);
|
||||
}
|
||||
zend_printf(") called at [%s:%d]\n", filename, lineno);
|
||||
include_filename = filename;
|
||||
include_filename = function_name?NULL:filename;
|
||||
ptr = ptr->prev_execute_data;
|
||||
++indent;
|
||||
}
|
||||
@@ -1766,7 +1766,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last TSRML
|
||||
|
||||
add_next_index_zval(return_value, stack_frame);
|
||||
|
||||
include_filename = filename;
|
||||
include_filename = function_name?NULL:filename;
|
||||
|
||||
ptr = ptr->prev_execute_data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user