From:             [EMAIL PROTECTED]
Operating system: tru64 5.0a
PHP version:      4.1.2
PHP Bug Type:     Output Control
Bug description:  doesn't seem to honor fopen stdin position in code

It appears that if I have a fopen to stdin anywhere in my code that PHP
will prompt for stdin at the beginning of its execution instead of where I
put it in the code.

The following example shows it:
#!/usr/local/bin/php
<?

print "BEFORE\n";
$cd=fopen("php://stdin","r");
$cd2=fread($cd,1);
print "AFTER\n";
?>

Now as soon as I execute it, it sits and waits for me to enter stdin, then
prints
BEFORE
AFTER

It should be showing BEFORE and then prompt for STDIN, unless there is
something major I am missing here.
-- 
Edit bug report at http://bugs.php.net/?id=16081&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16081&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16081&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16081&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16081&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16081&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16081&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16081&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16081&r=submittedtwice

Reply via email to