We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8512b2 commit 43a4a83Copy full SHA for 43a4a83
ext/zlib/tests/bug48725_2.phpt
@@ -0,0 +1,15 @@
1
+--TEST--
2
+Bug #48725 (Support for flushing in zlib stream)
3
+--SKIPIF--
4
+<?php
5
+if (!extension_loaded('zlib')) die('skip zlib extension not available');
6
+?>
7
+--FILE--
8
9
+$stream = fopen('data://text/plain;base64,' . base64_encode('Foo bar baz'),
10
+'r');
11
+stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_READ);
12
+print bin2hex(stream_get_contents($stream));
13
14
+--EXPECT--
15
+72cbcf57484a2c02e22a00000000ffff0300
0 commit comments