[Pkg-owncloud-commits] [owncloud] 21/27: Stop processing if PHP 7 is used
David Prévot
taffit at moszumanska.debian.org
Wed Oct 28 17:03:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.1.4RC2
in repository owncloud.
commit 352d695c95e2476be4627e6dd39fb72ab633b47a
Author: Lukas Reschke <lukas at owncloud.com>
Date: Mon Oct 26 17:34:33 2015 +0100
Stop processing if PHP 7 is used
PHP 7 is only compatible with ownCloud 8.2.0
---
index.php | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/index.php b/index.php
index 536a55a..3ac51c9 100644
--- a/index.php
+++ b/index.php
@@ -33,6 +33,14 @@ if (version_compare(PHP_VERSION, '5.4.0') === -1) {
return;
}
+// Show warning if PHP 7 is used as ownCloud is not compatible with PHP 7 until
+// version 8.2.0.
+if (version_compare(PHP_VERSION, '7.0.0') !== -1) {
+ echo 'This version of ownCloud is not compatible with PHP 7.<br/>';
+ echo 'You are currently running ' . PHP_VERSION . '. Please use at least ownCloud 8.2.0.';
+ return;
+}
+
try {
require_once 'lib/base.php';
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list