mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
gzencode, of course
This commit is contained in:
parent
31652e8b04
commit
57b527c886
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
assert(function_exists('gzcompress'));
|
assert(function_exists('gzencode'));
|
||||||
assert(function_exists('gzdecode'));
|
assert(function_exists('gzdecode'));
|
||||||
|
|
||||||
$input = str_repeat('The quick brown fox jumps over the lazy dog. ', 10);
|
$input = str_repeat('The quick brown fox jumps over the lazy dog. ', 10);
|
||||||
$compressed = gzcompress($input);
|
$compressed = gzencode($input);
|
||||||
assert(is_string($compressed));
|
assert(is_string($compressed));
|
||||||
assert(strlen($compressed) < strlen($input));
|
assert(strlen($compressed) < strlen($input));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user