Bug #78879 [NEW]: Serious bug again: SSL not working
| From: | gilperon at gmail dot com | Date: | Thu, 28 Nov 2019 15:18:18 +0000 |
| Subject: | Bug #78879 [NEW]: Serious bug again: SSL not working | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-223915@lists.php.net to get a copy of this message | ||
From: gilperon at gmail dot com
Operating system: any
PHP version: 7.2.25
Package: *General Issues
Bug Type: Bug
Bug description:Serious bug again: SSL not working
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 bug report at https://bugs.php.net/bug.php?id=78879&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78879&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78879&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78879&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78879&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78879&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78879&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78879&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78879&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78879&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78879&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78879&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78879&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78879&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78879&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78879&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78879&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78879&r=mysqlcfg