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