From: [EMAIL PROTECTED] Operating system: PHP version: 4.1.2 PHP Bug Type: Bzip2 Related Bug description: bzread has no reliable way of detecting eof
obviously feof will not work on a Bz file handle (though it would be nice if it did) the only way i could find it detect the end in a loop (where you would be slurping in the whole file) is: // open the file ... $bzfile $data=""; $string=bzread($bzfile,4096); while ($string!=str_repeat("\0",4096)) { $data.=$string; $string=bzread($bzfile,4096); } a better mechanism for eof detection is needed -- Edit bug report at http://bugs.php.net/?id=16689&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16689&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16689&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16689&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16689&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16689&r=support Expected behavior: http://bugs.php.net/fix.php?id=16689&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16689&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16689&r=submittedtwice