From ed8639c636006728b8ff8872ef4e36d66e46bd8d Mon Sep 17 00:00:00 2001 From: cytopia Date: Sun, 5 Jan 2020 17:18:07 +0100 Subject: [PATCH] Refs #662 Fix Symfony version display on Devilbox intranet --- .devilbox/www/include/lib/container/Php.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devilbox/www/include/lib/container/Php.php b/.devilbox/www/include/lib/container/Php.php index 894d6a8d..44d357d5 100644 --- a/.devilbox/www/include/lib/container/Php.php +++ b/.devilbox/www/include/lib/container/Php.php @@ -82,7 +82,7 @@ class Php extends BaseClass implements BaseInterface } public function getSymfonyVersion() { - $output = loadClass('Helper')->exec('symfony --version 2>/dev/null', $output); + $output = loadClass('Helper')->exec('symfony -V 2>/dev/null | tr -d "[:cntrl:]" | sed "s/\[[0-9]*m//g"', $output); return loadClass('Helper')->egrep('/[0-9.]+/', $output); } public function getWpcliVersion()