Show the PHP binary and version

This commit is contained in:
Jamie Cameron
2025-03-18 21:56:30 -07:00
parent 13acaeece7
commit 31c7e63407
2 changed files with 8 additions and 1 deletions

View File

@ -24,6 +24,7 @@ list_efile=File to edit must be an absolute path
list_return=PHP configuration
list_format_ini=INI format
list_format_fpm=FPM format
list_bin=PHP version $2 at $1
vars_title=PHP Variables
vars_header=PHP variable creation and quoting options

View File

@ -13,7 +13,13 @@ if (@files == 1 && !$access{'anyfile'} && $access{'noconfig'}) {
}
$inidir = &get_php_ini_dir($in{'file'});
&ui_print_header("<tt>".&html_escape($in{'file'})."</tt>",
my $bin = &get_php_ini_binary($in{'file'});
my $ver = &get_php_binary_version($in{'file'});
my $vmsg = "";
if ($bin && $ver) {
$vmsg = "<br>".&text('list_bin', "<tt>$bin</tt>", $ver);
}
&ui_print_header("<tt>".&html_escape($in{'file'})."</tt>".$vmsg,
$text{'list_title'}, "", undef, 0, $onefile);
@pages = ( "vars", "dirs", "db", "session", "limits",