Bug #70670 [NEW]: SOAP Client generates Segfault (same as Bug #69293)

From: Date: Thu, 08 Oct 2015 13:26:35 +0000
Subject: Bug #70670 [NEW]: SOAP Client generates Segfault (same as Bug #69293)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196483@lists.php.net to get a copy of this message
From: sergiopaternoster73 at gmail dot com Operating system: Linux Ubuntu 14.03 PHP version: 7.0.0RC4 Package: SOAP related Bug Type: Bug Bug description:SOAP Client generates Segfault (same as Bug #69293) Description: ------------ Bug #69293 happens on 7.0.0RC4. Note it works on 7.0.0RC3 SOAP Client generates Segfault Ubuntu 14.03 LTS 3.19.0-28-generic configure --prefix=/usr/local/php/7.0.0RC4 --enable-libxml --enable-soap --with-openssl --with-curl=/usr GDB ------------------------------ Core was generated by `/usr/local/php/7.0.0RC4/bin/php -q ./tmp/sfdc.php'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000000000052c510 in zend_string_realloc (s=0x0, len=665, persistent=0) at /home/edsradmin/software/php-7.0.0RC4/Zend/zend_string.h:185 185 if (!ZSTR_IS_INTERNED(s)) { Test script: --------------- <?php // Create Security header $secns = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; $token = new stdClass; $token->Username = new SOAPVar('bugs_php_net_test', XSD_STRING, null, null, null, $secns); $token->Password = new SOAPVar('bugs_php_net_test', XSD_STRING, null, null, null, $secns); $wsec = new stdClass; $wsec->UsernameToken = new SoapVar($token, SOAP_ENC_OBJECT, null, null, null, $secns); $headers = new SOAPHeader($secns, 'Security', $wsec, true); // Go go go $client = new SoapClient("http://www.webservicex.net/periodictable.asmx?WSDL", array('exceptions' => true, 'trace' => 1)); $client->__setSOAPHeaders($headers); $client->GetAtomicNumber(array('ElementName' => 'Vanadium')); Expected result: ---------------- Expected output would be a fatal SoapFault Fatal error: Uncaught SoapFault exception: [soap:MustUnderstand] System.Web.Services.Protocols.SoapHeaderException: SOAP header Security was not understood. Actual result: -------------- Segmentation Fault (core dumped) -- Edit bug report at https://bugs.php.net/bug.php?id=70670&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70670&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70670&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70670&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70670&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70670&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70670&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70670&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70670&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70670&r=support Expected behavior: https://bugs.php.net/fix.php?id=70670&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70670&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70670&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70670&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70670&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70670&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70670&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70670&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70670&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70670&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70670&r=mysqlcfg

« previous php.bugs (#196483) next »