diff options
| author | Pierre Joye <pierre.php@gmail.com> | 2014-05-17 08:12:18 +0200 |
|---|---|---|
| committer | Pierre Joye <pierre.php@gmail.com> | 2014-05-17 08:12:18 +0200 |
| commit | e9eb642a36595afb860d88697e6354f36b71eb6f (patch) | |
| tree | c17b4255da903e6d8ac10855cb67fe25a9c704fd | |
| parent | 81f45d50a104b861a358011f432cbee9efde8c6a (diff) | |
| download | php-git-e9eb642a36595afb860d88697e6354f36b71eb6f.tar.gz | |
fix hash API calls
| -rw-r--r-- | sapi/apache2filter/apache_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/apache2filter/apache_config.c b/sapi/apache2filter/apache_config.c index 7c50b9e6a8..6de4b3ab36 100644 --- a/sapi/apache2filter/apache_config.c +++ b/sapi/apache2filter/apache_config.c @@ -137,7 +137,7 @@ void *merge_php_config(apr_pool_t *p, void *base_conf, void *new_conf) zend_hash_move_forward(&d->config)) { pe = NULL; zend_hash_get_current_data(&d->config, (void **) &data); - if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) { + if ((pe = zend_hash_find(&n->config, str, str_len) != NULL) != NULL) { if (pe->status >= data->status) continue; } zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL); @@ -152,7 +152,7 @@ char *get_php_config(void *conf, char *name, size_t name_len) php_conf_rec *d = conf; php_dir_entry *pe; - if (zend_hash_find(&d->config, name, name_len, (void **) &pe) == SUCCESS) { + if ((pe = zend_hash_find(&d->config, name, name_len)) != NULL) { return pe->value; } |
