From: Dmitry Stogov Date: Thu, 25 May 2006 08:15:57 +0000 (+0000) Subject: Fixed bug #37278 (SOAP not respecting uri in __soapCall) X-Git-Tag: BEFORE_NEW_OUTPUT_API~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5236aaf96a6360e051aef6ef30a998cc6d7d34d;p=php Fixed bug #37278 (SOAP not respecting uri in __soapCall) --- diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 14c73b9a89..21bd4e18e2 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -2665,7 +2665,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