From 569cfd717f921b8927d1c7a0fe09abc72f3965a8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 23 Aug 2016 21:36:19 +0200 Subject: install.php: Test for composer Signed-off-by: Florian Pritz --- install.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.php b/install.php index 6e3dee03c..e9cf8611c 100644 --- a/install.php +++ b/install.php @@ -53,6 +53,14 @@ if ($buf != "0") { $errors .= " - Error when testing imagemagick (convert): Return code was \"$buf\".\n"; } +// test composer +ob_start(); +passthru("composer --version 2>&1", $buf); +ob_end_clean(); +if ($buf != "0") { + $errors .= " - Error when testing composer: Return code was \"$buf\".\n"; +} + // test PHP modules $mod_groups = array( "thumbnail generation" => array("gd"), -- cgit v1.2.3-24-g4f1b