From: Kalle Sommer Nielsen Date: Thu, 4 Jun 2009 08:18:32 +0000 (+0000) Subject: Fix build X-Git-Tag: php-5.4.0alpha1~191^2~3413 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de20dd7ac8e81cde168caa5184ee9dcdd6e662a3;p=php Fix build --- diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 2f33099f3b..dae863a4c7 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -589,10 +589,9 @@ try_again: smart_str_append_const(&soap_headers, "\", opaque=\""); smart_str_appends(&soap_headers, client->digest_opaque); } - if (zend_hash_find(Z_ARRVAL_PP(digest), "algorithm", sizeof("algorithm"), (void **)&tmp) == SUCCESS && - Z_TYPE_PP(tmp) == IS_STRING) { + if (client->digest_algorithm) { smart_str_append_const(&soap_headers, "\", algorithm=\""); - smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); + smart_str_appends(&soap_headers, client->digest_algorithm); } smart_str_append_const(&soap_headers, "\"\r\n"); }