Bug #73327 [NEW]: Problem with SOAP (NOT RESOLVED)

From: Date: Mon, 17 Oct 2016 07:54:34 +0000
Subject: Bug #73327 [NEW]: Problem with SOAP (NOT RESOLVED)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204842@lists.php.net to get a copy of this message
From: matteo dot veggia at gmail dot com Operating system: Windows x64 PHP version: 7.0.12 Package: SOAP related Bug Type: Bug Bug description:Problem with SOAP (NOT RESOLVED) Description: ------------ I will report an issue reported in 15-09-2016 in this link https://bugs.php.net/bug.php?id=73089. The problem IS NOT RESOLVED. I will be short: i have an WCF in a IIS Windows Server. This WCF host a web service with this function: public Dictionary<string, string> TestRoutine(Dictionary<string, string> Data) I calling this function with PHP with these rows: $url = "http://testserver/test/test.svc?wsdl"; $soapClient = new SoapClient($url, array('cache_wsdl' => WSDL_CACHE_NONE) ); $argsSOAP = new StdClass(); $argsSOAP->Data = Array(); array_push($argsSOAP->Data, Array("Key"=>"A", "Value"=>"1")); array_push($argsSOAP->Data, Array("Key"=>"B", "Value"=>"2")); $resSOAP = $soapClient->TestRoutine($argsSOAP); print_r($resSOAP); In PHP 5.6.X these rows works! In PHP 7.0.11 NO! The "Data" parameter result empty BUT If I put the values into the dictionary with a direct assignment, not using "array_push": $url = "http://testserver/test/test.svc?wsdl"; $soapClient = new SoapClient($url, array('cache_wsdl' => WSDL_CACHE_NONE) ); $argsSOAP = new StdClass(); $argsSOAP->Data = Array(); $argsSOAP->Data[0] = Array("Key"=>"A", "Value"=>"1"); $argsSOAP->Data[1] = Array("Key"=>"B", "Value"=>"2"); $resSOAP = $soapClient->TestRoutine($argsSOAP); print_r($resSOAP); IT WORKS!!! Why? Can you check? My PHP application is all based with array_push. Please help Thanks Matteo V. Test script: --------------- $url = "http://testserver/test/test.svc?wsdl"; $soapClient = new SoapClient($url, array('cache_wsdl' => WSDL_CACHE_NONE) ); $argsSOAP = new StdClass(); $argsSOAP->Data = Array(); array_push($argsSOAP->Data, Array("Key"=>"A", "Value"=>"1")); array_push($argsSOAP->Data, Array("Key"=>"B", "Value"=>"2")); $resSOAP = $soapClient->TestRoutine($argsSOAP); print_r($resSOAP); Expected result: ---------------- The web service receive a dictionary with two element Actual result: -------------- The web service receive a null element! -- Edit bug report at https://bugs.php.net/bug.php?id=73327&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73327&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73327&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73327&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73327&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73327&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73327&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73327&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73327&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73327&r=support Expected behavior: https://bugs.php.net/fix.php?id=73327&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73327&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73327&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73327&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73327&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73327&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73327&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73327&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73327&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73327&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73327&r=mysqlcfg

« previous php.bugs (#204842) next »