From 1782dbf4ea283e75f49dcaae0dac9fbe53ed56bd Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 1 Jul 2021 14:51:53 +0200 Subject: Add PHP version check --- core/application.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/application.php') diff --git a/core/application.php b/core/application.php index 80952fd..5bbc5d1 100644 --- a/core/application.php +++ b/core/application.php @@ -8,6 +8,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 #=============================================================================== -- cgit v1.2.3