Bug #73782 [NEW]: returning nested standard class functions more then 2 layers deep fails
| From: | squarerootofnegativeone at gmail dot com | Date: | Mon, 19 Dec 2016 05:47:46 +0000 |
| Subject: | Bug #73782 [NEW]: returning nested standard class functions more then 2 layers deep fails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-206122@lists.php.net to get a copy of this message | ||
From: squarerootofnegativeone at gmail dot com
Operating system: Linux
PHP version: 7.1.0
Package: SOAP related
Bug Type: Bug
Bug description:returning nested standard class functions more then 2 layers deep fails
Description:
------------
When a soap server returns nested standard class functions more then 2
layers deep the resulting xml is invalid causing an error on the client
side with no error report on the server side.
Test script:
---------------
<?php
//connect to soap server
$options= array(
'location' => 'https://way.bz/~soap_test',
'uri' => 'https://way.bz/~soap_test',
'soap_version' => SOAP_1_2
);
$client=new SoapClient(NULL,$options);
print_r($client->good()); //returns json_decode('{"tc": {"info":
"h","st": 7}}');
print_r($client->noGood()); //returns json_decode('{"tc": {"info":
{"10": {"l": 0}},"st": {"13": 13}}}');
Expected result:
----------------
Don't expect a fatal error.
Actual result:
--------------
stdClass Object ( [tc] => stdClass Object ( [info] => h [st] => 7 ) )
Fatal error: Uncaught SoapFault exception: [Sender] looks like we got no
XML document in C:\xampp\htdocs\ipswork\t.php:13 Stack trace: #0
C:\xampp\htdocs\ipswork\t.php(13): SoapClient->__call('noGood', Array)
#1 {main} thrown in C:\xampp\htdocs\ipswork\t.php on line 13
--
Edit bug report at https://bugs.php.net/bug.php?id=73782&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73782&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73782&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73782&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73782&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73782&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73782&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73782&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73782&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73782&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73782&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73782&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73782&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73782&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73782&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73782&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73782&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73782&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73782&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73782&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73782&r=mysqlcfg