#46271 [Opn->Csd]: SoapClient local_cert option only understands absolute paths on windows

From: Date: Tue, 14 Oct 2008 23:40:32 +0000
Subject: #46271 [Opn->Csd]: SoapClient local_cert option only understands absolute paths on windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129701@lists.php.net to get a copy of this message
ID: 46271 Updated by: iliaa@php.net 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

« previous php.bugs (#129701) next »