Bug #79166 [NEW]: PHP 7.4 error with php://stderr
| From: | michael dot piche at csrt dot ulaval dot ca | Date: | Fri, 24 Jan 2020 13:42:47 +0000 |
| Subject: | Bug #79166 [NEW]: PHP 7.4 error with php://stderr | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225099@lists.php.net to get a copy of this message | ||
From: michael dot piche at csrt dot ulaval dot ca
Operating system: Windows
PHP version: 7.4.2
Package: *Directory/Filesystem functions
Bug Type: Bug
Bug description:PHP 7.4 error with php://stderr
Description:
------------
Since PHP 7.4, the stream php://stderr is giving me a PHP notice "Bad
file descriptor". Everything is working fine with PHP 7.3.
I'm on Windows using mod_fcgid. The notice isn't happening if I run my
script directly from the command line.
I've got the same error with php://stdout
Test script:
---------------
$fp = fopen('php://stderr', 'w+');
var_dump($fp);
fwrite($fp, "test\n");
Actual result:
--------------
resource(3) of type (stream)
Notice: fwrite(): write of 5 bytes failed with errno=9 Bad file
descriptor in D:\htdocs\test_code\74.php on line 7
--
Edit bug report at https://bugs.php.net/bug.php?id=79166&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79166&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79166&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79166&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79166&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79166&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79166&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79166&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79166&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79166&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79166&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79166&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79166&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79166&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79166&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79166&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79166&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79166&r=mysqlcfg