From 31c7e634070a20b33e237e356664200fbe8e0571 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 18 Mar 2025 21:56:30 -0700 Subject: [PATCH] Show the PHP binary and version --- phpini/lang/en | 1 + phpini/list_ini.cgi | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/phpini/lang/en b/phpini/lang/en index 5f626bc6b..82639368f 100644 --- a/phpini/lang/en +++ b/phpini/lang/en @@ -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 diff --git a/phpini/list_ini.cgi b/phpini/list_ini.cgi index b510346d8..4a942fa76 100755 --- a/phpini/list_ini.cgi +++ b/phpini/list_ini.cgi @@ -13,7 +13,13 @@ if (@files == 1 && !$access{'anyfile'} && $access{'noconfig'}) { } $inidir = &get_php_ini_dir($in{'file'}); -&ui_print_header("".&html_escape($in{'file'})."", +my $bin = &get_php_ini_binary($in{'file'}); +my $ver = &get_php_binary_version($in{'file'}); +my $vmsg = ""; +if ($bin && $ver) { + $vmsg = "
".&text('list_bin', "$bin", $ver); + } +&ui_print_header("".&html_escape($in{'file'})."".$vmsg, $text{'list_title'}, "", undef, 0, $onefile); @pages = ( "vars", "dirs", "db", "session", "limits",