#34652 [Opn->Bgs]: feof(FALSE); returns FALSE
| From: | tony2001@php.net | Date: | Tue, 11 Apr 2006 20:56:38 +0000 |
| Subject: | #34652 [Opn->Bgs]: feof(FALSE); returns FALSE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95635@lists.php.net to get a copy of this message | ||
ID: 34652
Updated by: tony2001@php.net
Reported By: karoly at negyesi dot net
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Kubuntu Linux
PHP Version: 5.1.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2006-04-11 20:51:59] karoly at negyesi dot net
The problem exists even with 5.1.2 .
------------------------------------------------------------------------
[2005-10-05 01:00:08] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-09-27 14:25:22] marcot@php.net
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.
------------------------------------------------------------------------
[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