Skip to content

Commit

Permalink
Make sure to use the right php binary
Browse files Browse the repository at this point in the history
In order to use the same binary that was used to
execute Composer the PHP_BINARY constant is used.
  • Loading branch information
sebastianfeldmann committed May 25, 2021
1 parent def8812 commit 56e889e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ComposerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ private function runCaptainCommand(string $command): void
}

// sub process settings
$cmd = $executable . ' ' . $command . $ansi . $interaction . $forceOrSkip . $configuration . $repository;
$cmd = PHP_BINARY . ' ' . $executable . ' ' . $command
. $ansi . $interaction . $forceOrSkip
. $configuration . $repository;
$pipes = [];
$spec = [
0 => ['file', 'php://stdin', 'r'],
Expand Down

0 comments on commit 56e889e

Please sign in to comment.