#27417 [Csd->Opn]: feof under register_stream
| From: | phillip dot hegarty at ntlworld dot com | Date: | Tue, 09 Mar 2004 20:53:58 +0000 |
| Subject: | #27417 [Csd->Opn]: feof under register_stream | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56190@lists.php.net to get a copy of this message | ||
ID: 27417
User updated by: phillip dot hegarty at ntlworld dot com
Reported By: phillip dot hegarty at ntlworld dot com
-Status: Closed
+Status: Open
Bug Type: Filesystem function related
Operating System: *
PHP Version: 5.0.0b4 (beta4)
New Comment:
This still fails with the latest snapshot - stream_eof() return value
does not affect return value from feof().
Previous Comments:
------------------------------------------------------------------------
[2004-03-07 16:59:41] wez@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Most likely fixed now
------------------------------------------------------------------------
[2004-03-07 16:34:11] phillip dot hegarty at ntlworld dot com
This is the same as Bug #27508
------------------------------------------------------------------------
[2004-02-27 09:28:36] phillip dot hegarty at ntlworld dot com
Description:
------------
Example code from current documentation of the
stream_register_wrapper function includes an feof test.
This always returns a non-false value.
Code works on 4.3.4 but not on 5.0.0b4.
Altered class function "stream_eof" to emit debug message, which duly
echoe'd but whatever this function returns, the
feof returns true !
Reproduce code:
---------------
See example code from online documentation of the
stream_register_wrapper function
Expected result:
----------------
Expected feof to return false
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27417&edit=1