8000 minor #16707 [Process] Remove PHP_BINARY existence check (ogizanagi) · symfony/symfony@b5b1d50 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5b1d50

Browse files
committed
minor #16707 [Process] Remove PHP_BINA DCCB RY 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
2 parents c2b54bb + 42a75bc commit b5b1d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/PhpExecutableFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function find($includeArgs = true)
4444
}
4545

4646
// PHP_BINARY return the current sapi executable
47-
if (defined('PHP_BINARY') && PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg')) && is_file(PHP_BINARY)) {
47+
if (PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg')) && is_file(PHP_BINARY)) {
4848
return PHP_BINARY.$args;
4949
}
5050

0 commit comments

Comments
 (0)
0