Re: compressed streams

From: Date: Wed, 04 Aug 2004 11:39:20 +0000
Subject: Re: compressed streams
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-11901@lists.php.net to get a copy of this message
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 <nlopess@php.net> 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 > >

« previous php.internals (#11901) next »