mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
dc966787e1
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue