ID: 7960 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Filesystem function related Operating System: WIN32, WINNT, IRIX PHP Version: 4.0.3pl1 New Comment:
Works fine for me on Win2K, using 4.0.7RC3. You should upgrade to a newer version. Reopen if the problem still exists. Previous Comments: ------------------------------------------------------------------------ [2000-11-24 04:57:04] [EMAIL PROTECTED] <?php /* fopen bug ??? */ function ask($prompt = '', $mxin = 256) { $ret = false; print($prompt); $ifd = fopen('php://stdin', 'r'); if ($ifd) { $ret = fgets($ifd, $mxin); if (! fclose($ifd)) print("FCLOSE FAILED\r\n"); } return $ret; } if ($rep = ask()) print($rep); /* * next ask call causes under WIN32 WIN98 Second Edition: *[23-Nov-2000 22:51:02] PHP Warning: fopen("php://stdin","r") - No error in fopenbug.php on line 6 * under IRIX 6.5 (6.5.8m): *[24-Nov-2000 10:35:21] PHP Warning: fopen("php://stdin","r") - Bad file number in fopenbug.php on line 6 * and under WINNT 4.0 Service Pack 6: *[24-Nov-2000 10:49:34] PHP Warning: fopen("php://stdin","r") - No error in fopenbug.php on line 6 */ if ($rep = ask()) print($rep); ?> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=7960&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]