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

Add support for ionCube Loader

This commit is contained in:
Michele Locati 2020-12-10 14:56:31 +01:00
parent 692e9b740f
commit 4e3bfe4acc
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
3 changed files with 36 additions and 1 deletions

View file

@ -5,6 +5,7 @@ $numTestedExtensions = 0;
$nameMap = [
'opcache' => 'Zend OPcache',
'apcu_bc' => 'apc',
'ioncube_loader' => 'ionCube Loader',
];
$testsDir = __DIR__ . '/tests';
function runTest($testFile)
@ -29,7 +30,7 @@ for ($index = 1, $count = isset($argv) ? count($argv) : 0; $index < $count; $ind
if (!extension_loaded($extension)) {
fprintf(STDERR, sprintf("Extension not loaded: %s\n", $extension));
} else {
$testFile = "{$testsDir}/{$extension}";
$testFile = "{$testsDir}/{$extensionLowerCase}";
if (is_file($testFile)) {
try {
if (runTest($testFile) === true) {