php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70735 no transport is specified, https:// fsockopen() does not impact the formattin
Submitted: 2015-10-18 22:19 UTC Modified: 2017-03-26 04:22 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: admin at angosso dot net Assigned:
Status: No Feedback Package: OpenSSL related
PHP Version: 5.6.14 OS: Unix-like
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: admin at angosso dot net
New email:
PHP Version: OS:

 

 [2015-10-18 22:19 UTC] 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

Patches

ang (last revision 2015-10-18 22:24 UTC by admin at angosso dot net)

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-17 02:07 UTC] pollita@php.net
-Status: Open +Status: Feedback
 [2017-03-17 02:07 UTC] pollita@php.net
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).
 [2017-03-26 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri May 14 02:01:23 2021 UTC