From:             phillip dot hegarty at ntlworld dot com
Operating system: Win2000
PHP version:      5.0.0b4 (beta4)
PHP Bug Type:     Filesystem function related
Bug description:  feof under register_stream

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 bug report at http://bugs.php.net/?id=27417&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27417&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27417&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27417&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27417&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27417&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27417&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27417&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27417&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27417&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27417&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27417&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27417&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27417&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27417&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27417&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27417&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27417&r=float

Reply via email to