#14537 [Dup->Bgs]: fgetc fails to return single charachter immediatly
| From: | sniper@php.net | Date: | Sat, 24 Aug 2002 01:53:39 +0000 |
| Subject: | #14537 [Dup->Bgs]: fgetc fails to return single charachter immediatly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17725@lists.php.net to get a copy of this message | ||
ID: 14537
Updated by: sniper@php.net
Reported By: junk-php@aontic.com
-Status: Duplicate
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux 2.4.7-10smp i686
PHP Version: 4.1.0
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2001-12-16 05:46:20] yohgaki@php.net
Duplicate of Bug id #14003
------------------------------------------------------------------------
[2001-12-15 22:23:36] yohgaki@php.net
Please search bug database before report.
This has been reported ;)
------------------------------------------------------------------------
[2001-12-15 15:38:19] junk-php@aontic.com
fgetc should have at least the option of returning a single charachter
immediatly upon its entry, or another function should be defined (such
as getchar()) that achieves similar functionality to fgetc(stdin) which
return a single charachter immediatly.
The following script allows the user to type more than a single
charachter and only returns when the user hits enter. fgetc should
simply block until a single charachter is entered and then return.
This is missing functionality that can not be worked around easily as
far as I can tell.
Script:
$fp = fopen("php://stdin", "r");
$char = fgetc($fp);
echo $char;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14537&edit=1