2 encoding stream objects
7 skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib");
12 $d = new HttpDeflateStream;
13 $i = new HttpInflateStream;
14 echo $i->flush($d->flush("Hi "));
15 echo $i->finish($d->finish("there!\n"));
16 echo $i->finish($d->finish("Yo...\n"));
18 $id = $i->update($d->update($pd = file_get_contents(__FILE__)));
19 foreach (glob('*.phpt') as $f) {
20 $id .= $i->update($d->update($tmp = file_get_contents($f)));
23 $id .= $i->finish($d->finish());