Bug #78883 [Com]: fgets(STDIN) fails on Windows
| From: | julien dot boudry at gmail dot com | Date: | Fri, 29 Nov 2019 07:53:35 +0000 |
| Subject: | Bug #78883 [Com]: fgets(STDIN) fails on Windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223932@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78883&edit=1
ID: 78883
Comment by: julien dot boudry at gmail dot com
Reported by: php at nztm dot net
Summary: fgets(STDIN) fails on Windows
Status: Verified
Type: Bug
Package: Streams related
Operating System: Windows 10 x64
PHP Version: 7.4.0
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Hi,
This happens since 7.4 RC5, working well on RC4 !
Previous Comments:
------------------------------------------------------------------------
[2019-11-28 23:10:31] cmb@php.net
Thanks for reporting!
------------------------------------------------------------------------
[2019-11-28 19:23:57] php at nztm dot net
Description:
------------
On Linux, fgets(STDIN) asks the user for input and returns the results, but this fails on Windows -
it immediately returns false. On PHP 7.3 it works on Linux and Windows fine.
Test script:
---------------
var_dump(fgets(STDIN)); // Try on Windows and Linux, PHP 7.4.0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78883&edit=1