- Fixed bug #54529 (SAPI crashes on apache_config.c:197)

patch by: hebergement at riastudio dot fr
This commit is contained in:
Felipe Pena 2011-05-23 01:47:06 +00:00
parent 508f926604
commit 00169ec00f
2 changed files with 10 additions and 5 deletions

4
NEWS
View File

@ -38,6 +38,10 @@ PHP NEWS
. Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent when using
TMPDIR on Windows). (Pierre)
. Fixed bug 54866 (incorrect accounting for realpath_cache_size) (Dustin Ward)
- Apache2 Handler SAPI:
. Fixed bug #54529 (SAPI crashes on apache_config.c:197).
(hebergement at riastudio dot fr)
- cURL:
. Added CURLINFO_REDIRECT_URL support. (Daniel Stenberg, Pierre)

View File

@ -192,11 +192,12 @@ void apply_config(void *dummy)
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"));
}
}
}
}