summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-07-13 16:47:26 +0000
committerDmitry Stogov <dmitry@php.net>2006-07-13 16:47:26 +0000
commit2d0539e2babc59d38702fb44bf973dc9d981a1ce (patch)
tree7b3573e6ac598b43afecd017b19b3f8ab564ae07 /ext/soap/php_http.c
parent3c75c080cf3220a9a3a8ed77f1bd8ba4392d243b (diff)
downloadphp-git-2d0539e2babc59d38702fb44bf973dc9d981a1ce.tar.gz
Unicode support (not finished)
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index e7cb9810d9..4fa014e6cd 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -630,7 +630,7 @@ try_again:
/* Send cookies along with request */
if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == SUCCESS) {
zval **data;
- char *key;
+ zstr key;
int i, n;
n = zend_hash_num_elements(Z_ARRVAL_PP(cookies));
@@ -639,6 +639,7 @@ try_again:
smart_str_append_const(&soap_headers, "Cookie: ");
for (i = 0; i < n; i++) {
zend_hash_get_current_data(Z_ARRVAL_PP(cookies), (void **)&data);
+ /* TODO: unicode support */
zend_hash_get_current_key(Z_ARRVAL_PP(cookies), &key, NULL, FALSE);
if (Z_TYPE_PP(data) == IS_ARRAY) {
@@ -652,7 +653,7 @@ try_again:
(zend_hash_index_find(Z_ARRVAL_PP(data), 2, (void**)&tmp) == FAILURE ||
in_domain(phpurl->host,Z_STRVAL_PP(tmp))) &&
(use_ssl || zend_hash_index_find(Z_ARRVAL_PP(data), 3, (void**)&tmp) == FAILURE)) {
- smart_str_appendl(&soap_headers, key, strlen(key));
+ smart_str_appendl(&soap_headers, key.s, strlen(key.s));
smart_str_appendc(&soap_headers, '=');
smart_str_appendl(&soap_headers, Z_STRVAL_PP(value), Z_STRLEN_PP(value));
smart_str_appendc(&soap_headers, ';');