mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-29 04:50:51 +02:00
Merge branch '3.3.x'
This commit is contained in:
@@ -71,6 +71,13 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
||||
// Disable loading local files on client side
|
||||
@mysqli_options($this->db_connect_id, MYSQLI_OPT_LOCAL_INFILE, false);
|
||||
|
||||
/*
|
||||
* As of PHP 8.1 MySQLi default error mode is set to MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT
|
||||
* See https://wiki.php.net/rfc/mysqli_default_errmode
|
||||
* Since phpBB implements own SQL errors handling, explicitly set it back to MYSQLI_REPORT_OFF
|
||||
*/
|
||||
mysqli_report(MYSQLI_REPORT_OFF);
|
||||
|
||||
@mysqli_query($this->db_connect_id, "SET NAMES 'utf8'");
|
||||
|
||||
// enforce strict mode on databases that support it
|
||||
|
Reference in New Issue
Block a user