aboutsummaryrefslogtreecommitdiffstats
path: root/core/application.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-01 14:51:53 +0200
committerThomas Lange <code@nerdmind.de>2021-07-01 14:51:53 +0200
commit1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd (patch)
tree51a42e53f840dbb66df0830ffbc04aa05e3626b1 /core/application.php
parent0dd95bfcadf2626a5cf49af38d47f0ae6ab40082 (diff)
downloadblog-1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd.tar.gz
blog-1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd.tar.xz
blog-1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd.zip
Add PHP version check
Diffstat (limited to 'core/application.php')
-rw-r--r--core/application.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/application.php b/core/application.php
index 80952fd..5bbc5d1 100644
--- a/core/application.php
+++ b/core/application.php
@@ -9,6 +9,13 @@
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#===============================================================================
+# Check for minimum required PHP version
+#===============================================================================
+if(!version_compare(PHP_VERSION, '7.3', '>=')) {
+ exit('ABORT: This application requires at least PHP 7.3 to run.');
+}
+
+#===============================================================================
# Document root
#===============================================================================
define('ROOT', dirname(__DIR__).'/');