summaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-02-16 21:15:41 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-02-23 22:34:43 +0100
commitce76d2db1da723a3c5c97402941a51a59529e111 (patch)
treeee8db667fef27eef3568c0124335126df4c52f38 /install.php
parentadb6749310ff75f684f730c6e3144194046536a9 (diff)
install.php: Add test for pygmentize
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'install.php')
-rw-r--r--install.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/install.php b/install.php
index 62aee9341..8b07731e0 100644
--- a/install.php
+++ b/install.php
@@ -50,6 +50,14 @@ if (!class_exists("Memcache")) {
$errors .= " - Missing \"Memcache\" php class. Please install your distribution's package of http://pecl.php.net/package/memcache\n";
}
+// test pygmentize
+ob_start();
+passthru("pygmentize -V 2>&1", $buf);
+ob_end_clean();
+if ($buf != "0") {
+ $errors .= " - Error when testing pygmentize: Return code was \"$buf\".\n";
+}
+
// test qrencode
ob_start();
passthru("qrencode -V 2>&1", $buf);