php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20127 writing to stdin produces no output
Submitted: 2002-10-27 18:47 UTC Modified: 2002-10-27 21:55 UTC
From: shane at caraveo dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4CVS-2002-10-27 OS: win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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 18:47 UTC] shane at caraveo dot com
the following produces no output in windows.

$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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-27 21:55 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

writing should be done to stdout or stderr, stdin is for reading only.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC