#19970 [NEW]: feof()/fgets()/fgetcsv() problem
| From: | cynic@php.net | Date: | Fri, 18 Oct 2002 06:57:06 +0000 |
| Subject: | #19970 [NEW]: feof()/fgets()/fgetcsv() problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-22738@lists.php.net to get a copy of this message | ||
From: cynic@php.net
Operating system: FreeBSD 4.7-STABLE
PHP version: 4.2.2
PHP Bug Type: Filesystem function related
Bug description: feof()/fgets()/fgetcsv() problem
am I the only one who thinks that this should not output anything?
<?php
$fd = fopen(__FILE__, 'r');
while (!feof($fd)) fgets($fd, 4096) || var_dump(feof($fd));
fclose($fd);
I get bool(false) from 4.4.0-dev (cli) and 4.2.2 mod_php.
--
Edit bug report at http://bugs.php.net/?id=19970&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19970&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19970&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19970&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19970&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19970&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19970&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19970&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19970&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19970&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19970&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19970&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19970&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19970&r=isapi