ID: 46271 Updated by: [EMAIL PROTECTED] Reported By: arrakami at gmail dot com -Status: Open +Status: Closed Bug Type: SOAP related Operating System: Windows XP PHP Version: 5.2.6 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-10-10 13:47:59] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46271&edit=1