1
0
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:
Pieter Hordijk 2017-07-26 19:26:40 +02:00 committed by Niklas Keller
parent 6ed128f3e7
commit 8e6def047e

View File

@ -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 = [];