Skip to content

Commit 75b660d

Browse files
authored
Use shell_exec instead of backticks (#271)
1 parent 5d933e3 commit 75b660d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Context/FeatureContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ public function afterScenario( AfterScenarioScope $scope ): void {
769769
*/
770770
private static function terminate_proc( $master_pid ): void {
771771

772-
$output = `ps -o ppid,pid,command | grep $master_pid`;
772+
$output = shell_exec( "ps -o ppid,pid,command | grep $master_pid" );
773773

774774
foreach ( explode( PHP_EOL, $output ) as $line ) {
775775
if ( preg_match( '/^\s*(\d+)\s+(\d+)/', $line, $matches ) ) {

0 commit comments

Comments
 (0)