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
 [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: Fri Apr 19 13:01:30 2024 UTC