#34652 [Opn->Fbk]: feof(FALSE); returns FALSE
| From: | marcot@php.net | Date: | Tue, 27 Sep 2005 12:25:24 +0000 |
| Subject: | #34652 [Opn->Fbk]: feof(FALSE); returns FALSE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85642@lists.php.net to get a copy of this message | ||
ID: 34652
Updated by: marcot@php.net
Reported By: karoly at negyesi dot net
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Kubuntu Linux
PHP Version: 4.4.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Works just fine on my 4_4 from CVS.
Previous Comments:
------------------------------------------------------------------------
[2005-09-27 07:00:46] karoly at negyesi dot net
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 this bug report at http://bugs.php.net/?id=34652&edit=1