Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit d94caff

Browse files
committed
Merge pull request #40 from paranoiq/patch-1
Fix problem with escapeshellarg on Windows
2 parents b8c2762 + 3478466 commit d94caff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Process/PhpExecutable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function getVersionId()
7575
public static function getPhpExecutable($phpExecutable)
7676
{
7777
$codeToExecute = <<<PHP
78-
echo "PHP;", PHP_VERSION_ID, ";", defined('HPHP_VERSION') ? HPHP_VERSION : null;
78+
echo 'PHP;', PHP_VERSION_ID, ';', defined('HPHP_VERSION') ? HPHP_VERSION : null;
7979
PHP;
8080

8181
$process = new Process(escapeshellarg($phpExecutable) . ' -n -r ' . escapeshellarg($codeToExecute));
@@ -125,4 +125,4 @@ private static function getPhpExecutableFromOutput($phpExecutable, $output, $isH
125125
$isHhvmType
126126
);
127127
}
128-
}
128+
}

0 commit comments

Comments
 (0)