Bug #72274 [Opn->Fbk]: SOAP error when MS SQLSRV drivers are included in php.ini
| From: | cmb@php.net | Date: | Tue, 23 Mar 2021 16:31:01 +0000 |
| Subject: | Bug #72274 [Opn->Fbk]: 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-232944@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
Updated by: cmb@php.net
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
+Status: Feedback
Type: Bug
Package: SOAP related
Operating System: Windows 10
PHP Version: 5.6.22
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> But can be solved by specifying a cacert.pem file location in
> the openssl.cafile parameter in php.ini
Well, yes. I wonder, though, why pdo_sqlsrv would make a
difference. Anyhow, is this still an issue with any of the
actively supported PHP versions[1] and pdo_sqlsrv 5.9.0?
[1] <https://www.php.net/supported-versions.php>
Previous Comments:
------------------------------------------------------------------------
[2018-05-09 10:43:02] mark dot cassie at campdenbri dot co dot uk
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
------------------------------------------------------------------------
[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