1--TEST--
2zlib.deflate (with convert.base64-encode)
3--EXTENSIONS--
4zlib
5--FILE--
6<?php
7$text = 'I am the very model of a modern major general, I\'ve information vegetable, animal, and mineral.';
8
9$fp = fopen('php://stdout', 'w');
10stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE);
11stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
12fwrite($fp, $text);
13fclose($fp);
14
15?>
16--EXPECT--
17HctBDoAgDETRq8zOjfEeHKOGATG0TRpC4u1Vdn/xX4IoxkVMxgP1zA4vkJVhULk9UGkM6TvSNolmxUNlNLePVQ45O3eINf0fsQxtCxwv
18