Bug #70670 [Opn->Fbk]: SOAP Client generates Segfault (same as Bug #69293)

From: Date: Mon, 12 Oct 2015 12:15:20 +0000
Subject: Bug #70670 [Opn->Fbk]: SOAP Client generates Segfault (same as Bug #69293)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196552@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70670&edit=1 ID: 70670 Updated by: felipe@php.net Reported by: sergiopaternoster73 at gmail dot com Summary: SOAP Client generates Segfault (same as Bug #69293) -Status: Open +Status: Feedback Type: Bug Package: SOAP related Operating System: Linux Ubuntu 14.03 PHP Version: 7.0.0RC4 Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2015-10-08 13:26:33] sergiopaternoster73 at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=70670&edit=1

« previous php.bugs (#196552) next »