1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-10 09:02:42 +00:00

Add support for sodium on PHP 5.6, 7.0 and 7.1 (#562)

This commit is contained in:
Michele Locati 2022-04-05 14:37:14 +02:00 committed by GitHub
parent 3714ceb51a
commit a73248ed6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 0 deletions

View file

@ -7,6 +7,11 @@ $nameMap = [
'apcu_bc' => 'apc',
'ioncube_loader' => 'ionCube Loader',
];
if (PHP_VERSION_ID < 70000) {
$nameMap['sodium'] = 'libsodium';
} else {
$nameMap['libsodium'] = 'sodium';
}
$testsDir = __DIR__ . '/tests';
function runTest($testFile)
{