From c32fd4f81d185450b5c865c0bfb2e6fc7ec48e18 Mon Sep 17 00:00:00 2001 From: Jimako Date: Wed, 19 Jun 2024 19:42:06 +0200 Subject: [PATCH] php 8.1 fix --- install/install.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install/install.php b/install/install.php index 98f86f7..25b3af1 100644 --- a/install/install.php +++ b/install/install.php @@ -22,6 +22,13 @@ // ---------------------------------------------------------------------- +/** + * Revert PHP 8.1 mysqli default error mode + * @link https://github.com/php/php-src/blob/4025cf2875f895e9f7193cebb1c8efa4290d052e/UPGRADING#L101-L105 + */ +mysqli_report(MYSQLI_REPORT_OFF); + + function random_char($string) { $length = strlen($string);