|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-14 23:40 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 14:00:01 2025 UTC |
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.