Get the actual version if one cannot be guessed from the config file path

https://github.com/virtualmin/virtualmin-gpl/issues/1151
This commit is contained in:
Jamie Cameron
2025-11-10 19:25:48 -08:00
parent 2133d5d4bf
commit 06f75db35f

View File

@@ -34,7 +34,8 @@ sub show_phpini_dialog
my ($serv) = @_;
&foreign_require("phpini");
my @files = grep { $_->[1] }
map { [ $_->[0], &phpini::get_php_ini_version($_->[0]) ] }
map { [ $_->[0], &phpini::get_php_ini_version($_->[0]) ||
&phpini::get_php_binary_version($_->[0]) ] }
&phpini::list_php_configs();
my %donever;
@files = grep { !$donever{$_->[1]}++ } @files;