Skip to content

Commit 4328833

Browse files
committed
Removed PHP_BINARY usage from command.php as it will not work with PHP-FPM
1 parent e187c33 commit 4328833

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)