#34652 [Bgs]: feof(FALSE); returns FALSE

[email protected] ("karoly at negyesi dot net")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               34652
 User updated by:  karoly at negyesi dot net
 Reported By:      karoly at negyesi dot net
 Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: Kubuntu Linux
-PHP Version:      5.1.2
+PHP Version:      Irrevelant
 New Comment:

I did check how to report a bug report and I provided reproduce code
and expected and actual result. What's missing?


Previous Comments:
------------------------------------------------------------------------

[2006-04-11 20:56:38] [email protected]

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



------------------------------------------------------------------------

[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] [email protected]

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.