We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/etc/php/${PHP_VERSION}/mods-available/*.ini
/var/lib/php/modules/${PHP_VERSION}/registry/*
1 parent 0776fba commit 780f42cCopy full SHA for 780f42c
1 file changed
utils/utils.php
@@ -10,7 +10,8 @@
10
*/
11
function getAvailableExtensions(): array
12
{
13
- return array_map(function(string $fileName) { return basename($fileName);}, glob('/var/lib/php/modules/'.getenv('PHP_VERSION').'/registry/*'));
+ //return array_map(function(string $fileName) { return basename($fileName);}, glob('/var/lib/php/modules/'.getenv('PHP_VERSION').'/registry/*'));
14
+ return array_map(function(string $fileName) { return preg_replace('/\.ini$/i', '', basename($fileName));}, glob('/etc/php/'.getenv('PHP_VERSION').'/mods-available/*.ini'));
15
}
16
17
/**
0 commit comments