Bug #16048: fgets/feof failure when stdin is reading from a pipe

2002-03-13 Thread pjm
() returns true after the first line is read. The test script and sample output follow. The test script works fine if stdin is redirected from a file. It fails if stdin is a pipe. Nothing special about the build: ./configure --prefix=/usr/local --with-mysql pjm@poseidon cat test.php

Bug #16048 Updated: fgets/feof failure when stdin is reading from a pipe

2002-03-13 Thread pjm
script and sample output follow. The test script works fine if stdin is redirected from a file. It fails if stdin is a pipe. Nothing special about the build: ./configure --prefix=/usr/local --with-mysql pjm@poseidon cat test.php #!/usr/local/bin/php -q ?php $fd = fopen(php://stdin, r