Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reduce maximum limit for xdebug.var_display_max_depth to 1023 due to …

…memory constraints.
  • Loading branch information...
commit f3c80179f7190d00762afea7c38601e6619ae8ae 1 parent d35f343
@derickr authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 xdebug_var.c
View
8 xdebug_var.c
@@ -192,9 +192,9 @@ xdebug_var_export_options* xdebug_var_export_options_from_ini(TSRMLS_D)
options->max_data = 1;
}
- if (options->max_depth == -1) {
- options->max_depth = 4096;
- } else if (options->max_depth < 0) {
+ if (options->max_depth == -1 || options->max_depth > 1023) {
+ options->max_depth = 1023;
+ } else if (options->max_depth < 1) {
options->max_depth = 0;
}
@@ -204,7 +204,7 @@ xdebug_var_export_options* xdebug_var_export_options_from_ini(TSRMLS_D)
return options;
}
-xdebug_var_export_options xdebug_var_nolimit_options = { 1048576, 1048576, 64, 1, NULL, 0 };
+xdebug_var_export_options xdebug_var_nolimit_options = { XDEBUG_MAX_INT, XDEBUG_MAX_INT, 1023, 1, NULL, 0 };
xdebug_var_export_options* xdebug_var_get_nolimit_options(TSRMLS_D)
{
Please sign in to comment.
Something went wrong with that request. Please try again.