minor #16707 [Process] Remove PHP_BINARY existence check (ogizanagi)

This PR was merged into the 3.0-dev branch.

Discussion
----------

[Process] Remove PHP_BINARY existence check

| Q             | A
| ------------- | ---
| Fixed tickets | -
| License       | MIT

`PHP_BINARY` constant will always exists as of PHP >= 5.4.

Commits
-------

42a75bc [Process] Remove PHP_BINARY existence check
This commit is contained in:
Fabien Potencier 2015-11-28 14:17:09 +01:00
commit b5b1d504b4

View File

@ -44,7 +44,7 @@ class PhpExecutableFinder
}
// PHP_BINARY return the current sapi executable
if (defined('PHP_BINARY') && PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg')) && is_file(PHP_BINARY)) {
if (PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg')) && is_file(PHP_BINARY)) {
return PHP_BINARY.$args;
}