mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-12 09:29:56 +01:00
19 lines
419 B
PHP
Executable File
19 lines
419 B
PHP
Executable File
#!/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);
|