We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67320d3 commit 2f25409Copy full SHA for 2f25409
src/globals/ext-tests/lz4.php
@@ -0,0 +1,15 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+assert(function_exists('lz4_compress'));
6
+assert(function_exists('lz4_uncompress'));
7
8
+$input = str_repeat('The quick brown fox jumps over the lazy dog. ', 10);
9
+$compressed = lz4_compress($input);
10
+assert(is_string($compressed));
11
+assert(strlen($compressed) < strlen($input));
12
13
+$uncompressed = lz4_uncompress($compressed);
14
+assert(is_string($uncompressed));
15
+assert($uncompressed === $input);
0 commit comments