Skip to content

Commit 928c5b8

Browse files
authored
Merge pull request #217 from magento-trigger/fpm-compatibility
Support PHP-FPM in command.php
2 parents e187c33 + 4328833 commit 928c5b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/config/command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
} else {
1212
$arguments = null;
1313
}
14-
$php = PHP_BINARY ?: (PHP_BINDIR ? PHP_BINDIR . '/php' : 'php');
14+
$php = PHP_BINDIR ? PHP_BINDIR . '/php' : 'php';
1515
$valid = validateCommand($command);
1616
if ($valid) {
1717
exec(
@@ -60,7 +60,7 @@ function escapeCommand($command)
6060
*/
6161
function validateCommand($command)
6262
{
63-
$php = PHP_BINARY ?: (PHP_BINDIR ? PHP_BINDIR . '/php' : 'php');
63+
$php = PHP_BINDIR ? PHP_BINDIR . '/php' : 'php';
6464
exec($php . ' -f ../../../../bin/magento list', $commandList);
6565
// Trim list of commands after first whitespace
6666
$commandList = array_map("trimAfterWhitespace", $commandList);

0 commit comments

Comments
 (0)