Bug #78879 [Opn->Dup]: Serious bug again: SSL not working
| From: | peehaa@php.net | Date: | Thu, 28 Nov 2019 15:25:14 +0000 |
| Subject: | Bug #78879 [Opn->Dup]: Serious bug again: SSL not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223916@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78879&edit=1
ID: 78879
Updated by: peehaa@php.net
Reported by: gilperon at gmail dot com
Summary: Serious bug again: SSL not working
-Status: Open
+Status: Duplicate
Type: Bug
Package: *General Issues
Operating System: any
PHP Version: 7.2.25
Block user comment: N
Private report: N
New Comment:
Serious duplicate of https://bugs.php.net/bug.php?id=78845 ?
Previous Comments:
------------------------------------------------------------------------
[2019-11-28 15:18:18] gilperon at gmail dot com
Description:
------------
Run de code below. It just tries do connect to a local database and after that it tries to request a
URL content. In the case below if I use https://www.sitepor500.com.br it does not work however if I
use http://www.sitepor500.com.br (without SSL) it works.
You can try with any URL, the problem relies on whether you are using SSL or not using SSL.
<?php
$conn = mysqli_connect("localhost","root","your_password");
$curl = curl_init();
$opts = array();
$opts[CURLOPT_URL] = "https://www.sitepor500.com.br";
curl_setopt_array($curl,$opts);
echo curl_exec($curl);
?>
Test script:
---------------
<?php
$conn = mysqli_connect("localhost","root","your_password");
$curl = curl_init();
$opts = array();
$opts[CURLOPT_URL] = "https://www.sitepor500.com.br";
curl_setopt_array($curl,$opts);
echo curl_exec($curl);
?>
Expected result:
----------------
I should be able to see the content of the request using CURL
Actual result:
--------------
Nothing is returned.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78879&edit=1