Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

Commit 59ee17e

Browse files
committed
Not escape on windows
Fixes #27
1 parent 738de1b commit 59ee17e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/AsyncQueue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ protected function getCommand($jobId, $delay = 0)
9999
protected function getPhpBinary()
100100
{
101101
$path = escapeshellarg($this->config['binary']);
102+
if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
103+
$path = escapeshellarg($path);
104+
}
105+
102106
$args = $this->config['binary_args'];
103107
if(is_array($args)){
104108
$args = implode(' ', $args);

0 commit comments

Comments
 (0)