From: [EMAIL PROTECTED] 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