Home » Web Services » SOAP » Bug #1357
SOAP crashes when serializing recursive arrays or objects
Details
| Submitted | 2004-05-07 03:00 UTC |
|---|---|
| From | bas at vanklinkenbergsoftware dot nl |
| Assigned | yunosh |
| Status | No Feedback |
| Package | SOAP |
| PHP Version | 4.3.4 |
| OS | Fedora 1 |
| Roadmaps | (Not assigned) |
Comments
[2004-05-07 03:00 UTC] bas at vanklinkenbergsoftware dot nl
Description:
------------
When SOAP tries to send a SOAP message containing a recursive array or recursive object, it will segfault or die after max. execution time is reached.
This happens for example when an E_NOTICE error occurs, the SOAP_Fault that is sent as a result can contain a stacktrace with recursion, which will crash PHP. (see bug #604)
[2004-09-16 06:51 UTC] glodel at users dot sourceforge dot net
I have the same problem and just add a line in the Base.php file (around line 437). This is a really dirty hack.
foreach (array_keys($vars) as $k) {
if ($k[0]=='_') continue; // hide private vars
if ($k=='soapServer') continue; // hack that seems to work to avoid recursive serialization
if (is_object($vars[$k])) {