Hi Jan,

> Well done. It works perfectly. Now I have the same behavior using curl.exe 
> or PHP's curl_exec().
> Windows's security store is used.

FYI, while it works fine with curl + WinSSL, it breaks the PHP SSL streams.
How to leverage schannel for the PHP streams too ?

$data = file_get_contents('https://www.google.fr/');

$ php ssl.php
PHP Warning:  file_get_contents(): Unable to find the wrapper "https" - 
did you forget to enable it when you configured PHP? in ssl.php on line 7

Best regards,
  Vincent

PS:

$ php -v
PHP 7.2.14RC1 (cli) (built: Jan  6 2019 01:20:28) ( NTS MSVC15 (Visual C++ 
2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

$ php -i | findstr configu
Configure Command => cscript /nologo configure.js 
"--enable-snapshot-build" "--enable-crt-debug" "--disable-zts" 
"--enable-pdo" 
"--with-pdo-oci=C:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" 
"--with-oci8=C:\php-sdk\oracle\x64\instantclient_10_2\sdk,shared" 
"--with-oci8-11g=C:\php-sdk\oracle\x64\instantclient_11_2\sdk,shared" 
"--with-oci8-12c=C:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" 
"--enable-com-dotnet=shared" "--with-ereg=shared" 
"--with-odbcver=0x0380" "--with-php-build=../win64build.vc15"

$ php -i | findstr /I SSL
SSL => Yes
SSL Version => WinSSL
core SSL => supported
extended SSL => not supported
OpenSSL support => disabled (install ext/openssl)

$ type ssl.php
<?php

$data = file_get_contents('https://www.google.fr/');
var_dump($data);


-- 
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to