#20126 [Opn->Csd]: fwrite to stdin causes exception in streams

From: Date: Sun, 27 Oct 2002 23:36:02 +0000
Subject: #20126 [Opn->Csd]: fwrite to stdin causes exception in streams
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23467@lists.php.net to get a copy of this message
ID: 20126 Updated by: shane@php.net Reported By: shane@caraveo.com -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: win2k PHP Version: 4CVS-2002-10-27 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-10-27 16:41:44] shane@caraveo.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); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20126&edit=1

« previous php.bugs (#23467) next »