Skip to content

Commit

Permalink
Add support SAPI cli-server
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov authored and fabpot committed Jan 5, 2014
1 parent 8fc0cfa commit 3065f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Process/PhpExecutableFinder.php
Expand Up @@ -39,7 +39,7 @@ public function find()
}

// PHP_BINARY return the current sapi executable
if (defined('PHP_BINARY') && PHP_BINARY && ('cli' === PHP_SAPI) && is_file(PHP_BINARY)) {
if (defined('PHP_BINARY') && PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server')) && is_file(PHP_BINARY)) {
return PHP_BINARY;
}

Expand Down

0 comments on commit 3065f24

Please sign in to comment.