Bug #79060 [NEW]: fgets errno=22

From: Date: Fri, 03 Jan 2020 13:18:57 +0000
Subject: Bug #79060 [NEW]: fgets errno=22
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224686@lists.php.net to get a copy of this message
From: namiltd at yahooc dot om Operating system: Debian GNU/Linux 9 PHP version: 7.4.1 Package: *General Issues Bug Type: Bug Bug description:fgets errno=22 Description: ------------ Unexpected notice: Notice: fgets(): read of 8192 bytes failed with errno=22 Invalid argument in /home/www/test.php on line 3 Interestingly, the buffer is 2048 but indicates 8192 Test script: --------------- <?php $file = fopen("/sys/class/net/lo/speed","r"); echo ">".fgets($file, 2048)."<"; fclose($file); ?> Expected result: ---------------- >< Actual result: -------------- Notice: fgets(): read of 8192 bytes failed with errno=22 Invalid argument in /home/www/test.php on line 3 >< -- Edit bug report at https://bugs.php.net/bug.php?id=79060&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79060&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79060&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79060&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79060&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79060&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79060&r=support Expected behavior: https://bugs.php.net/fix.php?id=79060&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79060&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79060&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79060&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79060&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79060&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79060&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79060&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79060&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79060&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79060&r=mysqlcfg

« previous php.bugs (#224686) next »