From b4636e4c74aaeb31a20985f0781ddc97fecb300e Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 12 Sep 2025 11:38:08 +0200 Subject: [PATCH] Use `shell_exec` instead of backticks Using backticks is deprecated in PHP 8.5, see https://github.com/php/php-src/commit/3d9d68e1cacf8d185de6281bfec058b22e3094f8 --- src/Context/FeatureContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context/FeatureContext.php b/src/Context/FeatureContext.php index 4f3fdb7ba..8995330b8 100644 --- a/src/Context/FeatureContext.php +++ b/src/Context/FeatureContext.php @@ -769,7 +769,7 @@ public function afterScenario( AfterScenarioScope $scope ): void { */ private static function terminate_proc( $master_pid ): void { - $output = `ps -o ppid,pid,command | grep $master_pid`; + $output = shell_exec( "ps -o ppid,pid,command | grep $master_pid" ); foreach ( explode( PHP_EOL, $output ) as $line ) { if ( preg_match( '/^\s*(\d+)\s+(\d+)/', $line, $matches ) ) {