ID: 38536 User updated by: sabrina at corp dot grupos dot com dot br Reported By: sabrina at corp dot grupos dot com dot br -Status: Feedback +Status: Open Bug Type: SOAP related Operating System: FreeBSD 6.1 PHP Version: 5.1.5 New Comment:
<? $proxyParams = array('soap_version' => SOAP_1_1, 'trace' => false, 'exceptions' => true, 'encoding' => 'ISO-8859-1', 'location' => $newIp ); try { $SOAPObject = new SoapClient('http://enturma.com.br/wsdl/session.wsdl', $proxyParams); } catch (SoapFault $e) { throw new ESoapException($e->faultcode, $e->faultstring, 'initSOAP', $this->componentName, false); } $return = $SOAPObject->__soapCall('getClientInfoFromDomain', 'sabrina.corp.grupos.com.br'); var_dump($return); /** Var_dump for 5.1.5 can be seen here: http://intranet.grupos.com.br/~sabrina/phpbug/phpreply515.html Var_dump for 5.1.4 can be seen here: http://intranet.grupos.com.br/~sabrina/phpbug/phpreply514.html **/ ?> Previous Comments: ------------------------------------------------------------------------ [2006-08-21 20:06:19] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2006-08-21 14:02:14] sabrina at corp dot grupos dot com dot br Results of the tests and object dumps are here: http://intranet.grupos.com.br/~sabrina/phpbug ------------------------------------------------------------------------ [2006-08-21 13:59:59] sabrina at corp dot grupos dot com dot br Description: ------------ The return soap message should be an array of objects. Instead, it is returning an array of arrays. Each item should be an object, but it is an array. For each item in the array, a value is popped out, such as only the last item in the array has one value and is an object, as it should be. When using version 5.1.4 is working. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38536&edit=1