Fine-tune lz4 support (#599)
parent
b21d17013a
commit
9c368ab598
|
@ -1,5 +1,6 @@
|
|||
ddtrace !alpine3.7 !alpine3.8 !jessie
|
||||
geos !alpine3.7 !alpine3.8 !alpine3.9 !alpine3.10
|
||||
lz4 !jessie
|
||||
memprof !alpine3.7 !alpine3.8 !alpine3.9 !alpine3.10 !alpine3.11 !alpine3.12 !alpine3.13 !alpine3.14 !alpine3.15
|
||||
parallel zts
|
||||
parle !jessie
|
||||
|
|
|
@ -41,7 +41,7 @@ jsmin 5.5 5.6 7.0 7.1 7.2 7.3 7.4
|
|||
json_post 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
ldap 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
luasandbox 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
||||
lz4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
lz4 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
lzf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
mailparse 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
maxminddb 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/_bootstrap.php';
|
||||
|
||||
const ORIGINAL_DATA = 'Hi, there!';
|
||||
|
||||
$compressed = lz4_compress(ORIGINAL_DATA);
|
||||
if (!is_string($compressed) || $compressed === '') {
|
||||
fwrite(STDERR, 'lz4_compress() failed!');
|
||||
exit(1);
|
||||
}
|
||||
$uncompressed = lz4_uncompress($compressed);
|
||||
if ($uncompressed !== ORIGINAL_DATA) {
|
||||
fwrite(STDERR, 'lz4_uncompress() failed!');
|
||||
exit(1);
|
||||
}
|
||||
exit(0);
|
Loading…
Reference in New Issue