Fine-tune lz4 support (#599)

This commit is contained in:
Michele Locati 2022-06-16 16:36:44 +02:00 committed by GitHub
parent b21d17013a
commit 9c368ab598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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

18
scripts/tests/lz4 Executable file
View File

@ -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);