Bug #80931 [Com]: file_get_contents() hangs with HTTP/1.1 if server doesn't close connection

From: Date: Mon, 15 Jan 2024 12:29:51 +0000
Subject: Bug #80931 [Com]: file_get_contents() hangs with HTTP/1.1 if server doesn't close connection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246263@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80931&edit=1

 ID:                 80931
 Comment by:         gilperon at gmail dot com
 Reported by:        gilperon at gmail dot com
 Summary:            file_get_contents() hangs with HTTP/1.1 if server
                     doesn't close connection
 Status:             Verified
 Type:               Bug
 Package:            Streams related
 Operating System:   any
 PHP Version:        7.4
 Block user comment: N
 Private report:     N

 New Comment:

Is anyone gonna fix this? This bug happens for years and it's amazing we cant still trust
TIMEOUT to work with file_get_contents.


Previous Comments:
------------------------------------------------------------------------
[2023-10-16 11:06:25] castleapk1246 at gmail dot com

I am glad to find this website for daily updates worldwide. I usually visit this site to get full
details on any trending topic. I found this article very informative.

------------------------------------------------------------------------
[2023-09-20 11:53:44] taylorgodiva28 at gmail dot com

i want to follow how people fix this problem, i am also facing the same situation in
(geometrydashscratch.io/)github.com

------------------------------------------------------------------------
[2023-09-20 11:49:56] taylorgodiva28 at gmail dot com

i want to follow how people fix this problem, i am also facing the same situation https://gist.github.com/kelunik/c82ce751c1c203806b10ef7326f3e56a
in

------------------------------------------------------------------------
[2023-08-10 16:52:34] r dot hessel dot git at gmail dot com

Same issue, oddly only on Linux. 
Have 2 devs using docker on WSL2 and 1 using Linux Mint, and a UAT environment on Jelastic, all with
the same docker container. 

The windows WSL2 users have no issue, but the linux mint environment does, and so does the Jelastic
UAT.

Tested with these docker containers:
jelastic/nginxphp:1.22.1-php-8.1.14
jelastic/nginxphp:1.24.0-php-8.1.21


Details on the Linux Mint version:
Linux Mint 21.2 (ubuntu 22.04.2 based)
Docker version 24.0.5, build ced0996

------------------------------------------------------------------------
[2023-05-25 09:59:10] nguyenthuongzl633 at gmail dot com

The PHP website is every time give us very imp info. all time our work is easy.
(https://www.paybyplatema.one/)github.com

------------------------------------------------------------------------


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=80931


--
Edit this bug report at https://bugs.php.net/bug.php?id=80931&edit=1


Thread (35 messages)

« previous php.bugs (#246263) next »