Bug #70735 [Opn->Fbk]: no transport is specified, https:// fsockopen() does not impact the formattin
| From: | pollita@php.net | Date: | Fri, 17 Mar 2017 02:07:33 +0000 |
| Subject: | Bug #70735 [Opn->Fbk]: no transport is specified, https:// fsockopen() does not impact the formattin | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207885@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70735&edit=1
ID: 70735
Updated by: pollita@php.net
Reported by: admin at angosso dot net
Summary: no transport is specified, https:// fsockopen()
does not impact the formattin
-Status: Open
+Status: Feedback
Type: Bug
Package: OpenSSL related
Operating System: Unix-like
PHP Version: 5.6.14
Block user comment: N
Private report: N
New Comment:
This bug report is unintelligible.
Please rephrase what problem you're encountering and provide a working test script (your
current script has undefined variables and misspelled function names).
Previous Comments:
------------------------------------------------------------------------
[2015-10-18 22:19:17] admin at angosso dot net
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 this bug report at https://bugs.php.net/bug.php?id=70735&edit=1