diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-01-20 14:29:19 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-01-20 14:29:19 +0000 |
commit | c35353ea204654bde37991dee82a34d2d2bd339e (patch) | |
tree | 3c1816d5937118cd72264bcf414fe93b9753135e /ext/soap/php_http.c | |
parent | 9812f552899b0fecd7f869b9760516e920712e05 (diff) | |
download | php-git-c35353ea204654bde37991dee82a34d2d2bd339e.tar.gz |
Fixed bug #30901 (can't send cookies with soap envelop).
void SoapClient::__setCookie(string name [, string value])
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index b2acca55bf..47099736d0 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -471,10 +471,10 @@ try_again: if (zend_hash_index_find(Z_ARRVAL_PP(data), 0, (void**)&value) == SUCCESS && Z_TYPE_PP(value) == IS_STRING) { zval **tmp; - if (zend_hash_index_find(Z_ARRVAL_PP(data), 1, (void**)&tmp) == SUCCESS && - strncmp(phpurl->path?phpurl->path:"/",Z_STRVAL_PP(tmp),Z_STRLEN_PP(tmp)) == 0 && - zend_hash_index_find(Z_ARRVAL_PP(data), 2, (void**)&tmp) == SUCCESS && - in_domain(phpurl->host,Z_STRVAL_PP(tmp)) && + if ((zend_hash_index_find(Z_ARRVAL_PP(data), 1, (void**)&tmp) == FAILURE || + strncmp(phpurl->path?phpurl->path:"/",Z_STRVAL_PP(tmp),Z_STRLEN_PP(tmp)) == 0) && + (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_appendc(&soap_headers, '='); |