[Pkg-owncloud-commits] [owncloud] 01/07: Stop processing if PHP 7 is used

David Prévot taffit at moszumanska.debian.org
Wed Oct 28 17:02:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 48a2e343e0e18b578fb6d576736464bdd7a05967
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 0613918..1fd49ca 100644
--- a/index.php
+++ b/index.php
@@ -21,6 +21,14 @@
 *
 */
 
+// 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