2 encoding stream zlib without flush
11 $defl = new http\Encoding\Stream\Deflate;
12 $infl = new http\Encoding\Stream\Inflate;
13 $file = file(__FILE__);
15 foreach ($file as $line) {
18 if (strlen($temp = $defl->update($line))) {
19 foreach(str_split($temp) as $byte) {
20 $data .= $infl->update($byte);
24 if (strlen($temp = $defl->finish())) {
25 $data .= $infl->update($temp);
27 $data .= $infl->finish();
28 var_dump(implode("", $file) === $data);