|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-04-15 13:21 UTC] jere dot kankaanranta at codecoast dot fi
Description:
------------
Calling SoapClient::__soapCall() with a SoapVar that has a namespace but no name causes PHP to segfault. This also happens if the SoapVar is in input headers.
Test script:
---------------
<?php
$client = new \SoapClient('http://www.webservicex.com/globalweather.asmx?wsdl');
$namespace = 'http://www.webserviceX.NET';
$response = $client->__soapCall(
'GetCitiesByCountry',
[
new \SoapVar(
// [new \SoapVar('United States', XSD_STRING, null, null, 'CountryName', $namespace)], // ok
[new \SoapVar('United States', XSD_STRING, null, null, null, $namespace)], // segfault
SOAP_ENC_OBJECT,
null,
null,
'GetCitiesByCountry',
$namespace
)
]
);
print_r($response);
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 03:00:01 2025 UTC |
what I got is: Fatal error: Uncaught SoapFault exception: [Client] Function ("GetCitiesByCountry") is not a valid method for this service in /tmp/1.php:18 Stack trace: #0 /tmp/1.php(18): SoapClient->__soapCall('GetCitiesByCoun...', Array) #1 {main} thrown in /tmp/1.php on line 18 anything mistake?