Browse code

php 8.1 fix

Jimako authored on 2024/06/19 13:42:06
Showing 1 changed files
... ...
@@ -22,6 +22,13 @@
22 22
 // ----------------------------------------------------------------------
23 23
 
24 24
 
25
+/**
26
+ * Revert PHP 8.1 mysqli default error mode
27
+ * @link https://github.com/php/php-src/blob/4025cf2875f895e9f7193cebb1c8efa4290d052e/UPGRADING#L101-L105
28
+ */
29
+mysqli_report(MYSQLI_REPORT_OFF);
30
+
31
+
25 32
 function random_char($string)
26 33
 {
27 34
 	$length = strlen($string);