Commit 67076a9c authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-946 Add check for PHP >5.4 and <7.0.0.

Released under the Affero GNU General Public License (AGPL) version 3.
parent e6e8da1f
...@@ -203,8 +203,14 @@ class ZPush { ...@@ -203,8 +203,14 @@ class ZPush {
*/ */
static public function CheckConfig() { static public function CheckConfig() {
// check the php version // check the php version
if (version_compare(phpversion(),'5.1.0') < 0) if (version_compare(phpversion(),'5.4.0') < 0) {
throw new FatalException("The configured PHP version is too old. Please make sure at least PHP 5.1 is used."); throw new FatalException("The configured PHP version is too old. Please make sure at least PHP 5.4 is used.");
}
// TODO remove for ZP-804
if (version_compare(phpversion(), '7.0.0', '>=')) {
throw new FatalException("The configured PHP version is too new. PHP 7 is not yet supported. We are working on it!");
}
// some basic checks // some basic checks
if (!defined('BASE_PATH')) if (!defined('BASE_PATH'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment