From 9b0af8e5486974ac236faaf852f9be32ee2552f6 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Tue, 25 Nov 2025 13:23:09 +0100 Subject: [PATCH 1/3] Replace deprecated backtick operator with shell_exec() for PHP 8.5 compatibility --- configure.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.php b/configure.php index 028604ada9..81267ba2a2 100755 --- a/configure.php +++ b/configure.php @@ -590,9 +590,9 @@ function find_xml_files($path) // {{{ $branch = trim( `git -C $path rev-parse --abbrev-ref HEAD` ); $suffix = $branch == "master" ? "" : " (branch $branch)"; $output .= str_pad( "$name:" , 10 ); - $output .= rtrim( `git -C $path rev-parse HEAD` ?? "" ) . "$suffix "; - $output .= rtrim( `git -C $path for-each-ref --format="%(push:track)" refs/heads/$branch` ?? "" ) . "\n"; - $output .= rtrim( `git -C $path status -s` ?? "" ) . "\n"; + $output .= rtrim(shell_exec("git -C $path rev-parse HEAD") ?? '') . "$suffix "; + $output .= rtrim(shell_exec("git -C $path for-each-ref --format=\"%(push:track)\" refs/heads/$branch") ?? '') . "\n"; + $output .= rtrim(shell_exec("git -C $path status -s") ?? '') . "\n"; } while( str_contains( $output , "\n\n" ) ) $output = str_replace( "\n\n" , "\n" , $output ); From 091b52785af093fd4e76b5c85775ff661d1c9a9d Mon Sep 17 00:00:00 2001 From: Louis-Arnaud <20201470+lacatoire@users.noreply.github.com> Date: Wed, 26 Nov 2025 10:28:35 +0100 Subject: [PATCH 2/3] Update configure.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- configure.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.php b/configure.php index 81267ba2a2..9ba70cf94f 100755 --- a/configure.php +++ b/configure.php @@ -590,9 +590,9 @@ function find_xml_files($path) // {{{ $branch = trim( `git -C $path rev-parse --abbrev-ref HEAD` ); $suffix = $branch == "master" ? "" : " (branch $branch)"; $output .= str_pad( "$name:" , 10 ); - $output .= rtrim(shell_exec("git -C $path rev-parse HEAD") ?? '') . "$suffix "; - $output .= rtrim(shell_exec("git -C $path for-each-ref --format=\"%(push:track)\" refs/heads/$branch") ?? '') . "\n"; - $output .= rtrim(shell_exec("git -C $path status -s") ?? '') . "\n"; + $output .= rtrim(shell_exec("git -C $path rev-parse HEAD") ?? "") . "$suffix "; + $output .= rtrim(shell_exec("git -C $path for-each-ref --format=\"%(push:track)\" refs/heads/$branch") ?? "") . "\n"; + $output .= rtrim(shell_exec("git -C $path status -s") ?? "") . "\n"; } while( str_contains( $output , "\n\n" ) ) $output = str_replace( "\n\n" , "\n" , $output ); From 33daae6e483f72155e84ea660c698bfc4416e9b6 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud <20201470+lacatoire@users.noreply.github.com> Date: Wed, 26 Nov 2025 10:29:17 +0100 Subject: [PATCH 3/3] Update configure.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- configure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.php b/configure.php index 9ba70cf94f..297a69e071 100755 --- a/configure.php +++ b/configure.php @@ -587,7 +587,7 @@ function find_xml_files($path) // {{{ foreach ( $repos as $name => $path ) { $path = escapeshellarg( $path ); - $branch = trim( `git -C $path rev-parse --abbrev-ref HEAD` ); + $branch = trim(shell_exec("git -C $path rev-parse --abbrev-ref HEAD")); $suffix = $branch == "master" ? "" : " (branch $branch)"; $output .= str_pad( "$name:" , 10 ); $output .= rtrim(shell_exec("git -C $path rev-parse HEAD") ?? "") . "$suffix ";