From:             robson at tikaboo dot com dot br
Operating system: mdk 9.1
PHP version:      4.3.4
PHP Bug Type:     *General Issues
Bug description:  fread problem

Description:
------------
I�m trying to read an archive as follow : 
 
$fp = fopen($arc,"r"); 
while( $ch = fread($fp,1) ) 
 
 
but when read a zero ( 0 ) , it stops ( like a EOF ) 
 
if I change my code, reading two bytes while( $ch = fread($fp,2) ) 
, it works with no problem. 
 
tks 
 
Robson 
Brazil 


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

Reply via email to