Most likely a bug in the bzip2 wrapper.
It might not be fixable, and it might be better to use Sara's bzip2
filter from pecl instead.

--Wez.

On Wed, 4 Aug 2004 12:04:31 +0100, Nuno Lopes <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I know this isn't as exciting as the GOTO discussion, but I need some help.
> I don't know if this just my fault, or if it's a PHP problem.
> 
> Consider this:
> <?
> 
> $fp=fopen('compress.bzip2://http://php.net/backend/notes/all.bz2', 'r');
> 
> while (!feof($fp)) {
>    echo fgets($fp, 4096);
> }
> 
> fclose($fp);
> ?>
> 
> This gives an error:
> Warning: fopen() 1137 bytes of buffered data lost during stream conversion!
> in /cvs/livedocs/test_bz.php on line 3
> 
> And outputs nothing more. I'm using PHP 5.1.
> 
> Whats is wrong here?
> 
> Thanks for your time,
> Nuno
> 
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to