From: graced at wingsnw dot com Operating system: Irrelevant PHP version: 5.2.5 PHP Bug Type: Feature/Change Request Bug description: Should be an option to disable echo when reading php://stdin
Description: ------------ Short of using an experimental extension that's not likely to be available on a default install, there appears to be no way to disable/enable echoing of stdin content when reading it. A use case would be something like: <?php ob_implicit_flush(true); echo "Please enter your password: "; // code to disable echo here $password = fgets(STDIN); // code to re-enable echo here. -- Edit bug report at http://bugs.php.net/?id=43848&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43848&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43848&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43848&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43848&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43848&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43848&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43848&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43848&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43848&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43848&r=support Expected behavior: http://bugs.php.net/fix.php?id=43848&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43848&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43848&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43848&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43848&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43848&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43848&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43848&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43848&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43848&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43848&r=mysqlcfg