Doc->Bug #49013 [ReO]: SOAPClient interprets the parameters array incorrectly
| From: | cmb@php.net | Date: | Sun, 06 May 2018 16:48:10 +0000 |
| Subject: | Doc->Bug #49013 [ReO]: SOAPClient interprets the parameters array incorrectly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215133@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=49013&edit=1
ID: 49013
Updated by: cmb@php.net
Reported by: egos at biz-club dot biz
Summary: SOAPClient interprets the parameters array
incorrectly
Status: Re-Opened
-Type: Documentation Problem
+Type: Bug
Package: SOAP related
Operating System: debian Lenny
PHP Version: 5.5.1
-Assigned To: cmb
+Assigned To:
Block user comment: N
Private report: N
New Comment:
Hmm, the documentation explicitly states:
| This can be either an ordered or an associative array. Note that
| most SOAP servers require parameter names to be provided, in which
| case this must be an associative array.
According to the implementation this appears to be wrong, since a
copy of the $arguments array is created via
ZEND_HASH_FOREACH_VAL[1]. However, I'm not sure how it is supposed
to work, so I'm changing back to bug.
[1] <https://github.com/php/php-src/blob/PHP-7.2.5/ext/soap/soap.c#L2904-L2909>
Previous Comments:
------------------------------------------------------------------------
[2018-05-06 16:28:20] cmb@php.net
SoapClient::__call() ignores the array keys, analogously to
call_user_func_array(), so this is merely a doc issue.
------------------------------------------------------------------------
[2013-09-09 07:50:02] cweiske@php.net
I meant PHP 5.5.1, not 5.1.
------------------------------------------------------------------------
[2013-09-04 13:54:14] cweiske@php.net
We can reproduce the issue on PHP 5.1, see the files at http://p.cweiske.de/53:
SoapClient: http://p.cweiske.de/53/raw/soapclienttest.php
WSDL: http://p.cweiske.de/53/raw/test.wsdl
We give an associative array of parameters:
$arguments = array(
'password' => 'password-value',
'username' => 'username-value',
);
But the SOAP request has the values in wrong order:
<username xsi:type="xsd:string">password-value</username>
<password xsi:type="xsd:string">username-value</password>
------------------------------------------------------------------------
[2009-08-11 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-08-03 15:17:46] jani@php.net
Please try using this snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=49013
--
Edit this bug report at https://bugs.php.net/bug.php?id=49013&edit=1