check php version in setup

This commit is contained in:
maxpozdeev 2022-11-20 16:02:13 +03:00
parent e3f32c5209
commit 3daa661adb

View file

@ -9,6 +9,10 @@
// Can be used to upgrade database from myTinyTodo v1.4 or later
$lastVer = '1.7';
if (version_compare(PHP_VERSION, '7.2.0') < 0) {
die("PHP 7.2 or above is required");
}
if (getenv('MTT_ENABLE_DEBUG') == 'YES') {
set_exception_handler('debugExceptionHandler');
}