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:
parent
692e9b740f
commit
4e3bfe4acc
3 changed files with 36 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue