mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
check php version in setup
This commit is contained in:
parent
e3f32c5209
commit
3daa661adb
1 changed files with 4 additions and 0 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue