Req #77505 [NEW]: streams/HTTPS cannot be used with WinSSL/schannel

From: Date: Wed, 23 Jan 2019 01:35:22 +0000
Subject: Req #77505 [NEW]: streams/HTTPS cannot be used with WinSSL/schannel
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219143@lists.php.net to get a copy of this message
From: vjardin at free dot fr Operating system: Windows PHP version: 7.3.1 Package: Streams related Bug Type: Feature/Change Request Bug description:streams/HTTPS cannot be used with WinSSL/schannel Description: ------------ Assuming WinSSL is used, so openssl is disabled, $data = file_get_contents('https://www.google.fr/'); leads to 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 2 If we enable openssl, but the certificates are into the Windows' store, then of course, it cannot work: $ php -d extension=openssl ssl.php PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure in ssl.php on line 7 ------------------ $ 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) Test script: --------------- ssl.php: <?php $data = file_get_contents('https://www.google.fr/'); var_dump($data); Expected result: ---------------- Open a stream SSL/HTTPS connecion without OpenSSL but using WinSSL. libssh2 does support libssh2/WinSSL. It can become the abstraction layer. -- Edit bug report at https://bugs.php.net/bug.php?id=77505&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77505&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77505&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77505&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77505&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77505&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77505&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77505&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77505&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77505&r=support Expected behavior: https://bugs.php.net/fix.php?id=77505&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77505&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77505&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77505&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77505&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77505&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77505&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77505&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77505&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77505&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77505&r=mysqlcfg

« previous php.bugs (#219143) next »