PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » SOAP » Bug #1357

SOAP crashes when serializing recursive arrays or objects

Details

Submitted2004-05-07 03:00 UTC
Frombas at vanklinkenbergsoftware dot nl
Assignedyunosh
StatusNo Feedback
PackageSOAP
PHP Version4.3.4
OSFedora 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])) {