Skip to content

Commit f27cef9

Browse files
committed
fix path according to os family
1 parent 97797ba commit f27cef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function run(Settings $settings = null)
3838
$settings = $settings ?: new Settings();
3939
$output = $this->output ?: $this->getDefaultOutput($settings);
4040

41-
$phpExecutable = PhpExecutable::getPhpExecutable(escapeshellarg($settings->phpExecutable));
41+
$phpExecutable = PhpExecutable::getPhpExecutable(preg_replace('`(?<!^) `', '^ ', escapeshellcmd($settings->phpExecutable)));
4242
$olderThanPhp54 = $phpExecutable->getVersionId() < 50400; // From PHP version 5.4 are tokens translated by default
4343
$translateTokens = $phpExecutable->isIsHhvmType() || $olderThanPhp54;
4444

0 commit comments

Comments
 (0)