diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-01 14:51:53 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-01 14:51:53 +0200 |
commit | 1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd (patch) | |
tree | 51a42e53f840dbb66df0830ffbc04aa05e3626b1 | |
parent | 0dd95bfcadf2626a5cf49af38d47f0ae6ab40082 (diff) | |
download | blog-1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd.tar.gz blog-1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd.tar.xz blog-1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd.zip |
Add PHP version check
-rw-r--r-- | core/application.php | 7 |
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__).'/'); |