Date: Tue Mar 7 22:30:54 CET 2006
User: Derick Rethans
Directory: xdebug
Log Message:
[0.25]
- Turn the display of a stack trace whenever an exception occurs into a setting
as it's highly annoying.
Modified files:
xdebug/php_xdebug.h (version: 1.102)
xdebug/xdebug.c (version: 1.302)
[FILE: /xdebug/php_xdebug.h]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -r1.101 -r1.102
--- xdebug/php_xdebug.h:1.101 Tue Feb 28 07:54:46 2006 GMT
+++ xdebug/php_xdebug.h Tue Mar 07 20:30:54 2006 GMT
@@ -109,6 +109,7 @@
zend_bool collect_params;
zend_bool collect_return;
zend_bool extended_info;
+ zend_bool show_ex_trace;
zend_bool show_local_vars;
zend_bool show_mem_delta;
char *manual_url;
[FILE: /xdebug/xdebug.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.301
retrieving revision 1.302
diff -u -r1.301 -r1.302
--- xdebug/xdebug.c:1.301 Tue Feb 28 07:54:46 2006 GMT
+++ xdebug/xdebug.c Tue Mar 07 20:30:54 2006 GMT
@@ -291,6 +291,7 @@
#else
STD_PHP_INI_ENTRY("xdebug.max_nesting_level", "100", PHP_INI_ALL, OnUpdateLong, max_nesting_level, zend_xdebug_globals, xdebug_globals)
#endif
+ STD_PHP_INI_BOOLEAN("xdebug.show_exception_trace", "0", PHP_INI_ALL, OnUpdateBool, show_ex_trace, zend_xdebug_globals, xdebug_globals)
STD_PHP_INI_BOOLEAN("xdebug.show_local_vars", "0", PHP_INI_ALL, OnUpdateBool, show_local_vars, zend_xdebug_globals, xdebug_globals)
STD_PHP_INI_BOOLEAN("xdebug.show_mem_delta", "0", PHP_INI_ALL, OnUpdateBool, show_mem_delta, zend_xdebug_globals, xdebug_globals)
@@ -1753,7 +1754,9 @@
file = zend_read_property(default_ce, exception, "file", sizeof("file")-1, 0 TSRMLS_CC);
line = zend_read_property(default_ce, exception, "line", sizeof("line")-1, 0 TSRMLS_CC);
- print_stack(!(strcmp("cli", sapi_module.name) == 0), exception_ce->name, Z_STRVAL_P(message), Z_STRVAL_P(file), Z_LVAL_P(line), !PG(display_errors) TSRMLS_CC);
+ if (XG(show_ex_trace)) {
+ print_stack(!(strcmp("cli", sapi_module.name) == 0), exception_ce->name, Z_STRVAL_P(message), Z_STRVAL_P(file), Z_LVAL_P(line), !PG(display_errors) TSRMLS_CC);
+ }
/* Start JIT if requested and not yet enabled */
if (XG(remote_enable) && (XG(remote_mode) == XDEBUG_JIT) && !XG(remote_enabled)) {
Received on Tue Mar 07 2006 - 22:30:58 GMT
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST