com php-src: fix hash API calls: sapi/apache2filter/apache_ config.c

From: Date: Sat, 17 May 2014 06:12:18 +0000
Subject: com php-src: fix hash API calls: sapi/apache2filter/apache_ config.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78425@lists.php.net to get a copy of this message
Commit: e9eb642a36595afb860d88697e6354f36b71eb6f Author: Pierre Joye <pierre.php@gmail.com> Sat, 17 May 2014 08:12:18 +0200 Parents: 81f45d50a104b861a358011f432cbee9efde8c6a Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e9eb642a36595afb860d88697e6354f36b71eb6f Log: fix hash API calls Changed paths: M sapi/apache2filter/apache_config.c Diff: diff --git a/sapi/apache2filter/apache_config.c b/sapi/apache2filter/apache_config.c index 7c50b9e..6de4b3a 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; }

« previous php.cvs (#78425) next »