mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Fixes the constant used
`\PHP_BINARY` will never give phpdbg, but always the full path to the binary. You meant to use `\PHP_SAPI` here too just like on the previous line.
This commit is contained in:
parent
6ed128f3e7
commit
8e6def047e
@ -37,7 +37,7 @@ class ChannelledProcess implements ProcessContext, Strand {
|
||||
];
|
||||
|
||||
$options = (\PHP_SAPI === "phpdbg" ? " -b -qrr " : " ") . $this->formatOptions($options);
|
||||
$separator = \PHP_BINARY === "phpdbg" ? " -- " : " ";
|
||||
$separator = \PHP_SAPI === "phpdbg" ? " -- " : " ";
|
||||
$command = \escapeshellarg(\PHP_BINARY) . $options . $separator . \escapeshellarg($path);
|
||||
|
||||
$processOptions = [];
|
||||
|
Loading…
Reference in New Issue
Block a user