compressed streams

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

« previous php.internals (#11898) next »