Bug #78879 [Com]: Serious bug again: SSL not working

From: Date: Thu, 28 Nov 2019 17:57:42 +0000
Subject: Bug #78879 [Com]: Serious bug again: SSL not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223921@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 Comment by: gilperon at gmail dot com Reported by: gilperon at gmail dot com Summary: Serious bug again: SSL not working Status: Duplicate Type: Bug Package: *General Issues Operating System: any PHP Version: 7.2.25 Block user comment: N Private report: N New Comment: Yeah, serious duplicate of a serious bug that was not seriously fixed on version .24 and now seriously affects who use the latest seriously "unstable" version. Previous Comments: ------------------------------------------------------------------------ [2019-11-28 15:25:14] peehaa@php.net Serious duplicate of https://bugs.php.net/bug.php?id=78845 ? ------------------------------------------------------------------------ [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

« previous php.bugs (#223921) next »