Bug #17258: command line stdin order not honored

From: Date: Wed, 15 May 2002 18:30:49 +0000
Subject: Bug #17258: command line stdin order not honored
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7780@lists.php.net to get a copy of this message
From: mlong@mlong.org Operating system: Compaq Tru64 5.1 PHP version: 4.2.1 PHP Bug Type: Scripting Engine problem Bug description: command line stdin order not honored Consider this simple script: #!/usr/local/bin/php -q <? echo "TEST\n"; $fd=fopen("php://stdin","r"); $test=fgets($fd,4096); ?> When I run it PHP immediately asks for stdin, then after I enter something it does the echo "TEST". It's ignoring the order of my code! -- Edit bug report at http://bugs.php.net/?id=17258&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17258&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17258&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17258&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17258&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17258&r=support Expected behavior: http://bugs.php.net/fix.php?id=17258&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17258&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17258&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17258&r=globals

« previous php.bugs (#7780) next »