From 004becc270a2c669c4c58972744781a749c10d4a Mon Sep 17 00:00:00 2001 From: Kevin Kozan Date: Mon, 29 Jul 2019 09:16:27 -0500 Subject: [PATCH 1/2] MQE-1673: command.php truncating values '0' - added strlen to prevent removal of "0" --- etc/config/command.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/config/command.php b/etc/config/command.php index 9de9e31c7..81b945855 100644 --- a/etc/config/command.php +++ b/etc/config/command.php @@ -23,9 +23,9 @@ $valid = validateCommand($magentoBinary, $command); if ($valid) { // Turn string into array for symfony escaping - $commandParts = array_filter(explode(" ", $command)); - $argumentParts = array_filter(explode(" ", $arguments)); - $magentoBinaryParts = array_filter(explode(" ", $magentoBinary)); + $commandParts = array_filter(explode(" ", $command), 'strlen'); + $argumentParts = array_filter(explode(" ", $arguments), 'strlen'); + $magentoBinaryParts = array_filter(explode(" ", $magentoBinary), 'strlen'); $commandArray = array_merge($magentoBinaryParts, $commandParts); $process = new Symfony\Component\Process\Process($commandArray); $process->setIdleTimeout(60); From 7e8b0f4120e04b38ca3cba5b03f34f3a07694ec1 Mon Sep 17 00:00:00 2001 From: Kevin Kozan Date: Mon, 29 Jul 2019 13:13:49 -0500 Subject: [PATCH 2/2] MQE-1673: command.php truncating values '0' - added argument array to command array, additional bugfix. --- etc/config/command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/config/command.php b/etc/config/command.php index 81b945855..7b80d7284 100644 --- a/etc/config/command.php +++ b/etc/config/command.php @@ -26,7 +26,7 @@ $commandParts = array_filter(explode(" ", $command), 'strlen'); $argumentParts = array_filter(explode(" ", $arguments), 'strlen'); $magentoBinaryParts = array_filter(explode(" ", $magentoBinary), 'strlen'); - $commandArray = array_merge($magentoBinaryParts, $commandParts); + $commandArray = array_merge($magentoBinaryParts, $commandParts, $argumentParts); $process = new Symfony\Component\Process\Process($commandArray); $process->setIdleTimeout(60); $process->setTimeout(0);