summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Fuhrmannek2014-11-24 12:45:39 +0100
committerBen Fuhrmannek2014-11-24 12:45:39 +0100
commit3ccf184e795000b59d724f0a872b00df1612153c (patch)
treedc06f173b9de99985456905391058fa0b4c8af8a
parent737c47f2db94ecff8446a78610bd6e38e445a0b3 (diff)
safeguard for display_errors=fail
-rw-r--r--suhosin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/suhosin.c b/suhosin.c
index 3071bc1..b186fbb 100644
--- a/suhosin.c
+++ b/suhosin.c
@@ -1023,6 +1023,7 @@ PHP_MINIT_FUNCTION(suhosin)
1023 i->on_modify(i, "0", 1, i->mh_arg1, i->mh_arg2, i->mh_arg3, ZEND_INI_STAGE_STARTUP TSRMLS_CC); 1023 i->on_modify(i, "0", 1, i->mh_arg1, i->mh_arg2, i->mh_arg3, ZEND_INI_STAGE_STARTUP TSRMLS_CC);
1024 if (SUHOSIN_G(disable_display_errors) > 1) { 1024 if (SUHOSIN_G(disable_display_errors) > 1) {
1025 i->value = "0"; 1025 i->value = "0";
1026 i->modified = 0;
1026 i->value_length = strlen(i->value); 1027 i->value_length = strlen(i->value);
1027 i->on_modify = OnUpdate_fail; 1028 i->on_modify = OnUpdate_fail;
1028 } else { 1029 } else {