xref: /PHP-8.1/ext/zlib/tests/bug48725_2.phpt (revision 74859783)
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