#34652 [NEW]: feof(FALSE); returns FALSE
| From: | karoly at negyesi dot net | Date: | Tue, 27 Sep 2005 05:00:49 +0000 |
| Subject: | #34652 [NEW]: feof(FALSE); returns FALSE | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85625@lists.php.net to get a copy of this message | ||
From: karoly at negyesi dot net
Operating system: Kubuntu Linux
PHP version: 4.4.0
PHP Bug Type: Filesystem function related
Bug description: feof(FALSE); returns FALSE
Description:
------------
feof does not report TRUE when fopen failed thus any script that expects
this will fail into an infinite loop. This has been reported before but
that report is closed.
Reproduce code:
---------------
php -r "var_dump(feof(FALSE));"
Expected result:
----------------
bool(true)
Actual result:
--------------
Warning: feof(): supplied argument is not a valid stream resource in
Command line code on line 1
bool(false)
--
Edit bug report at http://bugs.php.net/?id=34652&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34652&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34652&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34652&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34652&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34652&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34652&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34652&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34652&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34652&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34652&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34652&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34652&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34652&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34652&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34652&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34652&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34652&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34652&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34652&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34652&r=mysqlcfg