|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-01-26 16:14 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Package: *Directory/Filesystem functions
+Package: Streams related
[2020-01-26 16:14 UTC] cmb@php.net
[2020-01-26 16:17 UTC] nikic@php.net
[2020-01-27 08:03 UTC] cmb@php.net
-Status: Verified
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2020-01-27 08:03 UTC] cmb@php.net
[2020-01-27 13:28 UTC] michael dot piche at csrt dot ulaval dot ca
-Status: Feedback
+Status: Assigned
[2020-01-27 13:28 UTC] michael dot piche at csrt dot ulaval dot ca
[2020-01-27 13:36 UTC] cmb@php.net
-Summary: PHP 7.4 error with php://stderr
+Summary: Notices for read/write failures are not
documented
-Status: Assigned
+Status: Verified
-Type: Bug
+Type: Documentation Problem
-PHP Version: 7.4.2
+PHP Version: 7.4
[2020-01-27 13:36 UTC] cmb@php.net
[2020-01-27 13:36 UTC] cmb@php.net
-Assigned To: cmb
+Assigned To:
[2020-01-27 13:48 UTC] michael dot piche at csrt dot ulaval dot ca
[2020-07-28 13:26 UTC] chokolatrix at gmail dot com
[2020-07-28 13:35 UTC] chokolatrix at gmail dot com
[2020-07-28 15:50 UTC] chokolatrix at gmail dot com
[2020-08-18 18:04 UTC] michael dot piche at csrt dot ulaval dot ca
[2022-10-06 10:51 UTC] bukka@php.net
-Package: Streams related
+Package: CGI/CLI related
[2022-10-06 10:51 UTC] bukka@php.net
[2022-12-16 08:22 UTC] melindaetinw81 at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 13:00:02 2025 UTC |
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