diff options
| author | Ben Fuhrmannek | 2014-11-15 10:48:42 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2014-11-15 10:48:42 +0100 |
| commit | ab0ee5aa5235ed98ae75bbdaee83a96819d1e896 (patch) | |
| tree | 8c7b6ae08bc533b0f6d19ae854f7457532caeec8 | |
| parent | d618c47b3e8945484c7e202f5dfbf2669870f16d (diff) | |
fixed crash with PHP 5.3 and disable_display_errors=fail
| -rw-r--r-- | suhosin.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 { |
