Bug #70735 [NEW]: no transport is specified, https:// fsockopen() does not impact the formattin
| From: | admin at angosso dot net | Date: | Sun, 18 Oct 2015 22:19:19 +0000 |
| Subject: | Bug #70735 [NEW]: no transport is specified, https:// fsockopen() does not impact the formattin | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-196679@lists.php.net to get a copy of this message | ||
From: admin at angosso dot net
Operating system: Unix-like
PHP version: 5.6.14
Package: OpenSSL related
Bug Type: Bug
Bug description: no transport is specified, https:// fsockopen() does not
impact the formattin
Description:
------------
fsockopen() does not support SSL/TLS with shared OpenSSL extension in
domain
ssl:// will attempt to negotiate an SSL V2, or SSL V3 connection
depending on the capabilities and preferences of the remote host.
sslv2:// and sslv3:// will select the SSL V2 or SSL V3 protocol
explicitly. The problem the found is caused by the difference between
the client/server encryption methods used
Test script:
---------------
<?php $fp = fsockopen("tls://webmail.example.com", 587, $errno,
$errstr);
stream_socket_enable_crypto($fp, true,
STREAM_CRYPTO_METHOD_SSLv23_CLIENT); ?>
creating SSL streams (using https://):
<?php
$context = context_create_stream($context_options)
$fp = fopen('https://url', 'r', false,
$context);
?>
Expected result:
----------------
A successful SSL/TLS connection.
SSL/TLS client connection over TCP/IP to connect to the remote host
Actual result:
--------------
Warning: fsockopen():
Failed to detect socket transport
--
Edit bug report at https://bugs.php.net/bug.php?id=70735&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70735&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70735&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70735&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70735&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70735&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70735&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70735&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70735&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70735&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70735&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70735&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70735&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70735&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70735&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70735&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70735&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70735&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70735&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70735&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70735&r=mysqlcfg