From: Dmitry Stogov Date: Thu, 25 May 2006 08:14:28 +0000 (+0000) Subject: Fixed bug #37278 (SOAP not respecting uri in __soapCall) X-Git-Tag: php-5.2.0RC1~465 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93851ebf11ce10b99952cad05ef9b6dec73bfb99;p=php Fixed bug #37278 (SOAP not respecting uri in __soapCall) --- diff --git a/NEWS b/NEWS index 64713291f2..0753134003 100644 --- a/NEWS +++ b/NEWS @@ -81,6 +81,7 @@ PHP NEWS - Fixed bug #37313 (sigemptyset() used without including ). (jdolecek) - Fixed bug #37306 (max_execution_time = max_input_time). (Dmitry) +- Fixed Bug #37278 (SOAP not respecting uri in __soapCall). (Dmitry) - Fixed bug #37256 (php-fastcgi dosen't handle connection abort). (Dmitry) - Fixed bug #37244 (Added strict flag to base64_decode() that enforces RFC3548 compliance). (Ilia) diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 22931b6e4b..c853372c2e 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -2663,7 +2663,7 @@ PHP_METHOD(SoapClient, __call) if (zend_hash_find(ht, "uri", sizeof("uri"), (void**)&tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { - soap_action = Z_STRVAL_PP(tmp); + uri = Z_STRVAL_PP(tmp); } } else if (Z_TYPE_P(options) != IS_NULL) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "first parameter must be string or null"); diff --git a/ext/soap/tests/bugs/bug37278.phpt b/ext/soap/tests/bugs/bug37278.phpt new file mode 100755 index 0000000000..15ef3c94c1 --- /dev/null +++ b/ext/soap/tests/bugs/bug37278.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #37278 (SOAP not respecting uri in __soapCall) +--SKIPIF-- + +--FILE-- + "test://", + "uri" => "http://bricolage.sourceforge.net/Bric/SOAP/Auth", + "trace" => 1); + +$client = new SoapClient(null, $options); + +$newNS = "http://bricolage.sourceforge.net/Bric/SOAP/Story"; + +try { + $client->__soapCall("list_ids", array(), array("uri" => $newNS)); +} catch (Exception $e) { + print $client->__getLastRequest(); +} +?> +--EXPECT-- + + \ No newline at end of file