Skip to content
Snippets Groups Projects
Commit c62bcb88 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Binay can show compiled PHP modules with -m

parent 28be862a
Branches
No related tags found
No related merge requests found
...@@ -90,6 +90,7 @@ OPTIONS: ...@@ -90,6 +90,7 @@ OPTIONS:
-h, --help Print this help and exit -h, --help Print this help and exit
-i, --ini Set an INI File to parse -i, --ini Set an INI File to parse
-l, --list list available checks and exit; --ini will be ignored -l, --list list available checks and exit; --ini will be ignored
-m, --modules list available Php modules in this binary
-v, --verbose Verbose output -v, --verbose Verbose output
-V, --version Show version and exit -V, --version Show version and exit
...@@ -141,6 +142,15 @@ if (isset($ARGS['-l']) || isset($ARGS['--list'])) { ...@@ -141,6 +142,15 @@ if (isset($ARGS['-l']) || isset($ARGS['--list'])) {
exit(0); exit(0);
} }
// show builtin modules
if (isset($ARGS['-m']) || isset($ARGS['--modules'])) {
_wd("Showing php modules");
$aMods=get_loaded_extensions();
sort($aMods);
echo implode("\n", $aMods);
exit(0);
}
$inifile = $ARGS["--ini"] ?? ($ARGS["-i"] ?? ""); $inifile = $ARGS["--ini"] ?? ($ARGS["-i"] ?? "");
if (!$inifile) { if (!$inifile) {
echo "ERROR: Set an INI File using -i=<FILE> (or --ini=<FILE>).\n"; echo "ERROR: Set an INI File using -i=<FILE> (or --ini=<FILE>).\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment