2 encoding stream zlib auto flush
11 $defl = new http\Encoding\Stream\Deflate(http\Encoding\Stream::FLUSH_FULL);
12 $infl = new http\Encoding\Stream\Inflate;
14 for ($f = fopen(__FILE__, "rb"); !feof($f); $data = fread($f, 0x100)) {
18 if ($data !== $d=$infl->update($defl->update($data))) {
19 printf("uh-oh »%s« != »%s«\n", $data, $d);
24 echo $infl->update($defl->finish());