We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2384f0 commit a90717fCopy full SHA for a90717f
src/Command.php
@@ -86,7 +86,8 @@ public function actionExec()
86
private function handleMessage($message)
87
{
88
// Executes child process
89
- $cmd = strtr('php {yii} {queue}/exec --verbose={verbose}', [
+ $cmd = strtr('{php} {yii} {queue}/exec --verbose={verbose}', [
90
+ '{php}' => PHP_BINARY,
91
'{yii}' => $_SERVER['SCRIPT_FILENAME'],
92
'{queue}' => $this->id,
93
'{verbose}' => (int) $this->verbose,
tests/QueueTestCase.php
@@ -40,6 +40,7 @@ private function prepareCmd($cmd)
40
$method->setAccessible(true);
41
42
return strtr($cmd, [
43
+ 'php' => PHP_BINARY,
44
'queue' => $method->invoke($this->getQueue()),
45
]);
46
}
0 commit comments