mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Cirrus will no longer offer unlimited free builds starting next month. We don't have an alternative for FreeBSD and ARM, so move what we can for now. Closes GH-11898
29 lines
586 B
PHP
29 lines
586 B
PHP
--TEST--
|
|
Bug #67724 (chained zlib filters silently fail with large amounts of data)
|
|
--EXTENSIONS--
|
|
zlib
|
|
--SKIPIF--
|
|
<?php
|
|
if (getenv("SKIP_SLOW_TESTS")) die('skip slow test');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
echo "Test\n";
|
|
|
|
$f = fopen(__DIR__."/bug67724.gz.gz", "rb")
|
|
or die(current(error_get_last()));
|
|
stream_filter_append($f, "zlib.inflate", STREAM_FILTER_READ, ["window" => 30]);
|
|
stream_filter_append($f, "zlib.inflate", STREAM_FILTER_READ, ["window" => 30]);
|
|
for ($i = 0; !feof($f); $i += strlen(fread($f, 0x1000)))
|
|
;
|
|
fclose($f);
|
|
|
|
var_dump($i);
|
|
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
Test
|
|
int(25600000)
|
|
DONE
|