Bug #78845 [Opn]: mysqli_connect() causes malfunctions of curl
| From: | nikic@php.net | Date: | Wed, 04 Dec 2019 09:24:06 +0000 |
| Subject: | Bug #78845 [Opn]: mysqli_connect() causes malfunctions of curl | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224051@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78845&edit=1
ID: 78845
Updated by: nikic@php.net
Reported by: gilperon at gmail dot com
Summary: mysqli_connect() causes malfunctions of curl
Status: Open
Type: Bug
Package: *General Issues
Operating System: Centos 7
PHP Version: 7.2.24
Block user comment: N
Private report: N
New Comment:
To clarify, running under strace should be as simple as "strace php script.php".
Previous Comments:
------------------------------------------------------------------------
[2019-11-26 19:18:39] gilperon at gmail dot com
Hey guys,
Yesterday it came back to work, RIGHT after I updated the PHP version to 7.2.25. However today, the
bug came back to happening again! It's pretty strange, cause I didnt update anything today on
my CENTOS server.
Really weird. I also clean installed Centos 7 on a new cloud, installed LAMP with PHP to 7.2.25 and
the bug also happens on a clean install. It's pretty easy to check it, just run the code with
MYSQLI and CURL using HTTPS and it happens.
HOWEVER if I remove HTTPS from the CURL it works just fine.
------------------------------------------------------------------------
[2019-11-26 10:54:17] cmb@php.net
> [â¦] can you please try with a current Git snapshot?
I mean with PHP 7.2.25 (which has already been released).
------------------------------------------------------------------------
[2019-11-26 10:48:41] cmb@php.net
> This should be solved on 7.2.5 with Nikita's patch [â¦]
Ah, good catch! It's 7.2.25, though.
@gilperon, can you please try with a current Git snapshot?
------------------------------------------------------------------------
[2019-11-25 16:02:41] lcobucci@php.net
This should be solved on 7.2.5 with Nikita's patch http://git.php.net/?p=php-src.git;a=commit;h=4f984a2fdb3815361f83013c23af0ff5d6d63d67
of bug #78775
------------------------------------------------------------------------
[2019-11-21 12:23:36] gilperon at gmail dot com
Guys I think it has something related to SSL!
On the test code I provided you if you change https://www.sitepor500.com.br to any domain that DOES NOT
have SSL it will work. Try changing https://www.sitepor500.com.br to any domain that does not
force https redirection and the bug goes away.
So it clearly only happen when the destination domain uses SSL.
note: this bug does not happen when using
file_get_contents.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78845
--
Edit this bug report at https://bugs.php.net/bug.php?id=78845&edit=1