Commit 16f55a71 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #258 in ZP/z-push from feature/ZP-946-add-a-check-for-php-versions to develop

* commit '67076a9c':
  ZP-946 Add check for PHP >5.4 and <7.0.0.
parents fee7ee6e 67076a9c
...@@ -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