summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--suhosin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/suhosin.c b/suhosin.c
index 00cd264..c19a2b8 100644
--- a/suhosin.c
+++ b/suhosin.c
@@ -1016,9 +1016,9 @@ PHP_MINIT_FUNCTION(suhosin)
1016 zend_ini_entry *i; 1016 zend_ini_entry *i;
1017 if (zend_hash_find(EG(ini_directives), "display_errors", sizeof("display_errors"), (void **) &i) == SUCCESS) { 1017 if (zend_hash_find(EG(ini_directives), "display_errors", sizeof("display_errors"), (void **) &i) == SUCCESS) {
1018 if (i->on_modify) { 1018 if (i->on_modify) {
1019 i->on_modify(i, "0", strlen("0"), i->mh_arg1, i->mh_arg2, i->mh_arg3, ZEND_INI_STAGE_STARTUP TSRMLS_CC); 1019 i->on_modify(i, "0", 1, i->mh_arg1, i->mh_arg2, i->mh_arg3, ZEND_INI_STAGE_STARTUP TSRMLS_CC);
1020 if (SUHOSIN_G(disable_display_errors) > 1) { 1020 if (SUHOSIN_G(disable_display_errors) > 1) {
1021 i->value = estrdup("0"); 1021 i->value = "0";
1022 i->value_length = strlen(i->value); 1022 i->value_length = strlen(i->value);
1023 i->on_modify = OnUpdate_fail; 1023 i->on_modify = OnUpdate_fail;
1024 } else { 1024 } else {