Bug #72274 [Com]: SOAP error when MS SQLSRV drivers are included in php.ini

From: Date: Wed, 09 May 2018 10:43:03 +0000
Subject: Bug #72274 [Com]: SOAP error when MS SQLSRV drivers are included in php.ini
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215174@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72274&edit=1 ID: 72274 Comment by: mark dot cassie at campdenbri dot co dot uk Reported by: mark dot cassie at campdenbri dot co dot uk Summary: SOAP error when MS SQLSRV drivers are included in php.ini Status: Open Type: Bug Package: SOAP related Operating System: Windows 10 PHP Version: 5.6.22 Block user comment: N Private report: N New Comment: The problem still exists in PHP 7.1.17 and with sql_srv 5.2 But can be solved by specifying a cacert.pem file location in the openssl.cafile parameter in php.ini Previous Comments: ------------------------------------------------------------------------ [2016-10-20 08:06:47] mark dot cassie at campdenbri dot co dot uk This problem also applies to PHP 7.0.12 on Windows 10 ------------------------------------------------------------------------ [2016-05-27 14:23:03] mark dot cassie at campdenbri dot co dot uk extension=php_pdo_sqlsrv_55_nts.dll should read extension=php_pdo_sqlsrv_56_nts.dll ------------------------------------------------------------------------ [2016-05-27 14:20:14] mark dot cassie at campdenbri dot co dot uk Description: ------------ We have just started upgrading from Windows 7 to Windows 10 and I found this problem while testing the upgrade. When I include extension=php_pdo_sqlsrv_55_nts.dll in the php.ini file everything seems to work ok until the page hits the new SoapClient code below at which point it throws an error; PHP Fatal Error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https...' : failed to load external entity "https..." This code worked fine under Windows 7 and under Windows Server 2008 r2 SP1 but these errors started after the Windows 10 upgrade, removing the sqlsrv extension fixed the problem. I am using the latest (3.2) version of the MS SQL server drivers Test script: --------------- $client = "https://example.com/WebServices/webservice.svc?wsdl"; $this->soapClient = new SoapClient($client, array('features' => SOAP_SINGLE_ELEMENT_ARRAYS, 'trace' => false, 'exceptions' => true)); Expected result: ---------------- I don't expect to see the error mentioned above, in Windows 7 and Windows Server 2008 r2 the code works ok. Actual result: -------------- PHP Fatal Error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https...' : failed to load external entity "https..." ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72274&edit=1

« previous php.bugs (#215174) next »