SoapClient local_cert option only understands absolute paths on windows
| Bug #46271 | SoapClient local_cert option only understands absolute paths on windows | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2008-10-10 13:47 UTC | Modified: | 2008-10-14 23:40 UTC |
|
||||||||||
| From: | arrakami at gmail dot com | Assigned: | ||||||||||||
| Status: | Closed | Package: | SOAP related | |||||||||||
| PHP Version: | 5.2.6 | OS: | Windows XP | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2008-10-10 13:47 UTC] arrakami at gmail dot com
Description:
------------
The local_cert option in SoapClient does not understand relative
paths on windows machines. While it does on Linux machines. Sorry i
cannot provide any actual credentials to test this.
Reproduce code:
---------------
$soapclient_opts = array(
'local_cert' => 'some\relative\path\cert.pem',
);
$SoapClient = new SoapClient('some\relative\wsdl.xml', $soapclient_opts);
try {
$request = new SoapVar($some_xml_request, XSD_ANYXML);
$SoapClient->__soapCall('someFunc', array($request));
} catch(SoapFault $e) {
print_r($e);
}
Expected result:
----------------
One would expect that SoapClient would connect to the webservice and
call the required function or if the relative path is not allowed to
pass the soapclient should throw and error saying exactly that.
Actual result:
--------------
An exception is thrown which says "Could not connect to host." If you
pass an absolute path to the local_cert everything works fine.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-10-14 23:40 UTC] iliaa@php.net