Bug #73237 [NEW]: Nested object in "any" element overwrites other fields
| From: | ksmiley at salesforce dot com | Date: | Mon, 03 Oct 2016 21:48:41 +0000 |
| Subject: | Bug #73237 [NEW]: Nested object in "any" element overwrites other fields | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-204433@lists.php.net to get a copy of this message | ||
From: ksmiley at salesforce dot com
Operating system: Any
PHP version: 7.0.11
Package: SOAP related
Bug Type: Bug
Bug description:Nested object in "any" element overwrites other fields
Description:
------------
When a WSDL declares a complex type with an "any" element and the SOAP
response includes multiple fields that will all be placed under the
generic "any" element, if one of the response fields is another complex
type, it will overwrite the other fields.
Test script:
---------------
Will link to a pull request with a test case after submitting this.
Expected result:
----------------
["any"]=>
array(2) {
[0]=>
string(175)
"<sf:CampaignId>701i0000001lreeAAA</sf:CampaignId><sf:Status>Sent</sf:Status><sf:ContactId
xsi:nil="true"/><sf:LeadId>1UrbYFEAZ</sf:LeadId><sf:Contact
xsi:nil="true"/>"
["Lead"]=>
object(stdClass)#5 (3) {
["type"]=>
string(4) "Lead"
["Id"]=>
NULL
["any"]=>
string(44) "<sf:Email>angela.lansbury@cbs.com</sf:Email>"
}
}
Actual result:
--------------
["any"]=>
array(2) {
[0]=>
object(stdClass)#5 (3) {
["type"]=>
string(4) "Lead"
["Id"]=>
NULL
["any"]=>
string(44) "<sf:Email>angela.lansbury@cbs.com</sf:Email>"
}
["Lead"]=>
object(stdClass)#5 (3) {
["type"]=>
string(4) "Lead"
["Id"]=>
NULL
["any"]=>
string(44) "<sf:Email>angela.lansbury@cbs.com</sf:Email>"
}
}
--
Edit bug report at https://bugs.php.net/bug.php?id=73237&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73237&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73237&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73237&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73237&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73237&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73237&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73237&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73237&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73237&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73237&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73237&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73237&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73237&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73237&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73237&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73237&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73237&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73237&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73237&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73237&r=mysqlcfg