php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20126 fwrite to stdin causes exception in streams
Submitted: 2002-10-27 16:41 UTC Modified: 2002-10-27 17:36 UTC
From: shane at caraveo dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4CVS-2002-10-27 OS: win2k
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shane at caraveo dot com
New email:
PHP Version: OS:

 

 [2002-10-27 16:41 UTC] shane at caraveo dot com
running run-tests.php with current cvs build causes exception.  Minimal code to repro:

$fp = fopen("php://stdin", "r+");
fwrite($fp, "Some tests have failed, would you like to send the\nreport to PHP's QA team? [Yn]: ");
fflush($fp);
$user_input = fgets($fp, 10);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-27 17:36 UTC] shane@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

fixed in cvs, streams.c revision: 1.118

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 00:00:03 2025 UTC