From: Operating system: Any PHP version: Irrelevant Package: SOAP related Bug Type: Bug Bug description:SoapClient segmentation fault when XSD_TYPEKIND_EXTENSION contains itself
Description: ------------ While running a soap client in wsdl mode, if the response of a call contains an element which is an extension, and it contains itself, an infinite loop occurs in resulting in a segmentation fault. The provided patch is against 5.3.6, does not produce the expected results (but does not segfault), and causes other tests to fail, but it identifies where the problem is (to_zval_object_ex). I've confirmed that this also occurs in previous versions. Test script: --------------- Test script: http://soapbug.privatepaste.com/700d21fc7f WSDL: http://soapbug.privatepaste.com/4d7e882d61 XSD: http://soapbug.privatepaste.com/43f7a3e274 Expected result: ---------------- object(stdClass)#%d (2) { ["accountId"]=> int(1234) ["parent"]=> *RECURSION* } } Actual result: -------------- Segmentation fault -- Edit bug report at https://bugs.php.net/bug.php?id=55323&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55323&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55323&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55323&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55323&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55323&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55323&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55323&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55323&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55323&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55323&r=support Expected behavior: https://bugs.php.net/fix.php?id=55323&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55323&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55323&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55323&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55323&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55323&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55323&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55323&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55323&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55323&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55323&r=mysqlcfg