Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
67076a9c
Commit
67076a9c
authored
May 31, 2016
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
zpush.php
src/lib/core/zpush.php
+8
-2
No files found.
src/lib/core/zpush.php
View file @
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'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment