1
0
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:
Andi Gutmans
2004-09-08 23:46:37 +00:00
parent 532a79aa52
commit 2e286e7374

View File

@@ -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;
}