Patch bug-54529_patch.diff for Apache2 related Bug #54529
Patch version 2011-04-24 21:31 UTC
Return to Bug #54529 |
Download this patch
Patch Revisions:
Developer: hebergement@riastudio.fr
Index: apache_config.c
===================================================================
--- apache_config.c (revision 310455)
+++ apache_config.c (working copy)
@@ -192,11 +192,12 @@
zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, 0,
NULL) == HASH_KEY_IS_STRING;
zend_hash_move_forward(&d->config)) {
- zend_hash_get_current_data(&d->config, (void **) &data);
- phpapdebug((stderr, "APPLYING (%s)(%s)\n", str, data->value));
- if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, data->htaccess?PHP_INI_STAGE_HTACCESS:PHP_INI_STAGE_ACTIVATE) == FAILURE) {
- phpapdebug((stderr, "..FAILED\n"));
- }
+ if (zend_hash_get_current_data(&d->config, (void **) &data) == SUCCESS) {
+ phpapdebug((stderr, "APPLYING (%s)(%s)\n", str, data->value));
+ if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, data->htaccess?PHP_INI_STAGE_HTACCESS:PHP_INI_STAGE_ACTIVATE) == FAILURE) {
+ phpapdebug((stderr, "..FAILED\n"));
+ }
+ }
}
}
|