/
proc
/
self
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
streams
/
File Upload :
llllll
Current File: //proc/self/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/streams/bug77080.phpt
--TEST-- Bug #77080 (Deflate not working) --SKIPIF-- <?php if (!extension_loaded('zlib')) die('skip zlib extension not available'); ?> --FILE-- <?php $string = str_repeat("0123456789", 100); $stream = fopen('data://text/plain,' . $string,'r'); stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_READ, 6); $compressed = stream_get_contents($stream); var_dump(gzinflate($compressed) === $string); ?> --EXPECT-- bool(true)
Copyright ©2k19 -
Hexid
|
Tex7ure