Skip to content

Commit

Permalink
Merge pull request #44 from jackd248/feature-php-disabled-functions
Browse files Browse the repository at this point in the history
[BUGFIX] check if php function get_loaded_extensions is enabled
  • Loading branch information
Apen authored Jan 16, 2024
2 parents 396ad29 + 67c2545 commit 095faf0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Classes/Reports/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,12 @@ public function displayPhp(AbstractTemplateView $view): void
$data['apache_user'] = $apacheUser['name'] . ' (' . $apacheUser['gid'] . ')';
$data['apache_group'] = $apacheGroup['name'] . ' (' . $apacheGroup['gid'] . ')';
}
$extensions = array_map('strtolower', get_loaded_extensions());
natcasesort($extensions);
$data['extensions'] = $extensions;

if (function_exists('get_loaded_extensions')) {
$extensions = array_map('strtolower', get_loaded_extensions());
natcasesort($extensions);
$data['extensions'] = $extensions;
}

$view->assign('datas_php', $data);
}
Expand Down

0 comments on commit 095faf0

Please sign in to comment.