diff options
| author | Felipe Pena <felipe@php.net> | 2011-05-23 01:47:06 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2011-05-23 01:47:06 +0000 |
| commit | 184f80ff668737dbb181421feec577a18858118d (patch) | |
| tree | 9f7f23d3b75c088120195434e8d0ce5770d76559 /sapi/apache2handler/apache_config.c | |
| parent | 584f1c438105ff520d43488e7173418f8af7fbec (diff) | |
| download | php-git-184f80ff668737dbb181421feec577a18858118d.tar.gz | |
- Fixed bug #54529 (SAPI crashes on apache_config.c:197)
patch by: hebergement at riastudio dot fr
Diffstat (limited to 'sapi/apache2handler/apache_config.c')
| -rw-r--r-- | sapi/apache2handler/apache_config.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sapi/apache2handler/apache_config.c b/sapi/apache2handler/apache_config.c index e48e23b135..37a2195ab9 100644 --- a/sapi/apache2handler/apache_config.c +++ b/sapi/apache2handler/apache_config.c @@ -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")); + } + } } } |
