From 4d825fa6a698645dc588bde6ef5339e534b5f31c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Feb 2023 19:30:41 +0300 Subject: require PHP to have support for flock() --- classes/config.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes/config.php') diff --git a/classes/config.php b/classes/config.php index 9a8b466ab..a865266ca 100644 --- a/classes/config.php +++ b/classes/config.php @@ -541,6 +541,10 @@ class Config { array_push($errors, "PHP support for JSON is required, but was not found."); } + if (!function_exists("flock")) { + array_push($errors, "PHP support for flock() function is required."); + } + if (!class_exists("PDO")) { array_push($errors, "PHP support for PDO is required but was not found."); } -- cgit v1.2.3