php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70670 SOAP Client generates Segfault (same as Bug #69293)
Submitted: 2015-10-08 13:26 UTC Modified: 2015-10-14 03:16 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sergiopaternoster73 at gmail dot com Assigned:
Status: Closed Package: SOAP related
PHP Version: 7.0.0RC4 OS: Linux Ubuntu 14.03
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sergiopaternoster73 at gmail dot com
New email:
PHP Version: OS:

 

 [2015-10-08 13:26 UTC] 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-12 12:15 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2015-10-12 12:15 UTC] felipe@php.net
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.


 [2015-10-14 03:16 UTC] sergiopaternoster73 at gmail dot com
-Status: Feedback +Status: Closed
 [2015-10-14 03:16 UTC] sergiopaternoster73 at gmail dot com
Please, close this Bug#. I cannot replicate it anymore with the submitted script. It happens with SalesForce.com SOAP API though. I will open a new one
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 04 12:01:28 2024 UTC