[Pkg-owncloud-commits] [owncloud] 02/04: Stop processing if PHP 7 is used
David Prévot
taffit at moszumanska.debian.org
Wed Oct 28 17:03:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.9RC2
in repository owncloud.
commit 7e8f3ee28dd658c64197daabd7bde72018bffe69
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 1ab350a..4a847c1 100644
--- a/index.php
+++ b/index.php
@@ -29,6 +29,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