php-src/ext/zlib/tests/bug48725_2.phpt
Remi Collet 5e12844d4d
Fix GH-13217 Test failure with zlib-ng
As compressed result may be different
- drop or relax expectations on compressed data
- rely on uncompressed result of compressed data
2024-03-05 10:13:22 +01:00

14 lines
316 B
PHP

--TEST--
Bug #48725 (Support for flushing in zlib stream)
--EXTENSIONS--
zlib
--FILE--
<?php
$stream = fopen('data://text/plain;base64,' . base64_encode('Foo bar baz'),
'r');
stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_READ);
print gzinflate(stream_get_contents($stream));
?>
--EXPECT--
Foo bar baz