#37013 [NEW]: server hangs when returning circular object references
From: hjiverson at plauditdesign dot com
Operating system: Gentoo Linux
PHP version: 5CVS-2006-04-07 (snap)
PHP Bug Type: SOAP related
Bug description: server hangs when returning circular object references
Description:
------------
When I return a graph of objects that has circular references (a tree of
categories, for example), the soap server gets stuck in an infinite
loop/recursion and hangs.
Reproduce code:
---------------
http://dev.plauditdesign.com/~hjiverson/drop/php-soap-multiref-bug.txt
Expected result:
----------------
The server should use mutliRefs and create references to each object. Each
object instance would be serialized one time and given a unique ID, which
is then pointed to each time an reference to that object is encountered.
Something like this:
<getThingWithParentResponse>
<result href="#object1"/>
</getThingWithParentResponse>
...
<multiRef xsi:type="ThingWithParent" id="object1">
...
<parent xsi:nil="1"/>
<children>
<child href="#object2"/>
</children>
</multiRef>
<multiRef xsi:type="ThingWithParent" id="object2">
...
<parent href="#object1"/>
<children xsi:nil="1"/>
</multiRef>
Actual result:
--------------
php hangs
--
Edit bug report at http://bugs.php.net/?id=37013&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37013&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37013&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37013&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37013&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37013&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37013&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37013&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37013&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37013&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37013&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37013&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37013&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37013&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37013&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37013&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37013&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37013&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37013&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37013&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37013&r=mysqlcfg
Thread (5 messages)
- hjiverson at plauditdesign dot com