7 skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib");
13 define('OUT', fopen('php://output', 'w'));
15 stream_filter_append(OUT, 'http.chunked_encode');
16 stream_filter_append(OUT, 'http.deflate');
17 stream_filter_append(OUT, 'http.chunked_encode');
18 stream_filter_append(OUT, 'http.deflate');
19 stream_filter_append(OUT, 'http.inflate');
20 stream_filter_append(OUT, 'http.chunked_decode');
21 stream_filter_append(OUT, 'http.inflate');
22 stream_filter_append(OUT, 'http.chunked_decode');
25 This is some stream filter fun; we'll see if it bails out or not.
26 The text should come out at the other end of the stream exactly like written to it.
31 foreach (str_split($text, 5) as $part) {
40 This is some stream filter fun; we'll see if it bails out or not.
41 The text should come out at the other end of the stream exactly like written to it.