mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
5e12844d4d
As compressed result may be different - drop or relax expectations on compressed data - rely on uncompressed result of compressed data
14 lines
316 B
PHP
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
|