summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-12-23 22:00:18 +0100
committerNikita Popov <nikic@php.net>2014-12-26 21:06:18 +0100
commit2d212b426a22c9d9f357be0a6832ced9a3fff073 (patch)
treef1d0ec807cca7add558b6282b85e136e2e5a9bfd /ext/soap/php_http.c
parent3d12fc796b0048ab498f82ac497476129a7976e7 (diff)
downloadphp-git-2d212b426a22c9d9f357be0a6832ced9a3fff073.tar.gz
Drop duplicate arg from hash_get_current_key_ex
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 1bf0c8fe0f..38db62ca98 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -809,7 +809,7 @@ try_again:
smart_str_append_const(&soap_headers, "Cookie: ");
for (i = 0; i < n; i++) {
data = zend_hash_get_current_data(Z_ARRVAL_P(cookies));
- zend_hash_get_current_key_ex(Z_ARRVAL_P(cookies), &key, NULL, 0, NULL);
+ zend_hash_get_current_key_ex(Z_ARRVAL_P(cookies), &key, NULL, NULL);
if (Z_TYPE_P(data) == IS_ARRAY) {
zval *value;
@@ -822,9 +822,9 @@ try_again:
((tmp = zend_hash_index_find(Z_ARRVAL_P(data), 2)) == NULL ||
in_domain(phpurl->host,Z_STRVAL_P(tmp))) &&
(use_ssl || (tmp = zend_hash_index_find(Z_ARRVAL_P(data), 3)) == NULL)) {
- smart_str_appendl(&soap_headers, key->val, key->len);
+ smart_str_append(&soap_headers, key);
smart_str_appendc(&soap_headers, '=');
- smart_str_appendl(&soap_headers, Z_STRVAL_P(value), Z_STRLEN_P(value));
+ smart_str_append(&soap_headers, Z_STR_P(value));
smart_str_appendc(&soap_headers, ';');
}
}