xref: /PHP-8.2/ext/zlib/tests/bug48725_2.phpt (revision 5e12844d)
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 gzinflate(stream_get_contents($stream));
11?>
12--EXPECT--
13Foo bar baz
14