1--TEST-- 2Bug #48725 (Support for flushing in zlib stream) 3--SKIPIF-- 4<?php 5if (!extension_loaded('zlib')) die('skip zlib extension not available'); 6?> 7--FILE-- 8<?php 9$stream = fopen('data://text/plain;base64,' . base64_encode('Foo bar baz'), 10'r'); 11stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_READ); 12print bin2hex(stream_get_contents($stream)); 13?> 14--EXPECT-- 1572cbcf57484a2c02e22a00000000ffff0300 16