Bug #78883 [NEW]: fgets(STDIN) fails on Windows

From: Date: Thu, 28 Nov 2019 19:23:57 +0000
Subject: Bug #78883 [NEW]: fgets(STDIN) fails on Windows
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223923@lists.php.net to get a copy of this message
From: php at nztm dot net Operating system: Windows 10 x64 PHP version: 7.4.0 Package: Streams related Bug Type: Bug Bug description:fgets(STDIN) fails on Windows 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 bug report at https://bugs.php.net/bug.php?id=78883&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78883&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78883&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78883&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78883&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78883&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78883&r=support Expected behavior: https://bugs.php.net/fix.php?id=78883&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78883&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78883&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78883&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78883&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78883&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78883&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78883&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78883&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78883&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78883&r=mysqlcfg

« previous php.bugs (#223923) next »