Bug #78482 [NEW]: fgets notice from 7.4-beta2: read of 8192 bytes failed with errno=9 Bad file d
| From: | julien dot boudry at gmail dot com | Date: | Sat, 31 Aug 2019 10:59:36 +0000 |
| Subject: | Bug #78482 [NEW]: fgets notice from 7.4-beta2: read of 8192 bytes failed with errno=9 Bad file d | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-222505@lists.php.net to get a copy of this message | ||
From: julien dot boudry at gmail dot com
Operating system: Windows 10 - Non Thread Safe
PHP version: 7.4.0beta4
Package: *General Issues
Bug Type: Bug
Bug description:fgets notice from 7.4-beta2: read of 8192 bytes failed with errno=9 Bad file d
Description:
------------
Hi,
From PHP 7.4-beta2 (it's working on beta1), the following notice appears
on fgets :
read of 8192 bytes failed with errno=9 Bad file descriptor in /in/TR1Bk
on line 7
It also works on stable versions.
https://3v4l.org/TR1Bk
Test script:
---------------
<?php
$tempName = tempnam(sys_get_temp_dir(), 'test');
$handle = fopen($tempName, 'w');
$line = fgets($handle);
fclose($handle);
Actual result:
--------------
Notice: fgets(): read of 8192 bytes failed with errno=9 Bad file
descriptor in /in/TR1Bk on line 7
--
Edit bug report at https://bugs.php.net/bug.php?id=78482&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78482&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78482&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78482&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78482&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78482&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78482&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78482&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78482&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78482&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78482&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78482&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78482&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78482&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78482&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78482&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78482&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78482&r=mysqlcfg