Skip to content

Commit 4b9f689

Browse files
TybazethePanz
authored andcommitted
PHP 8.1 > mysqli_report revert to off
https://php.watch/versions/8.1/mysqli-error-mode
1 parent b5975b3 commit 4b9f689

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/database/sfMySQLiDatabase.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class sfMySQLiDatabase extends sfMySQLDatabase
2929
*/
3030
protected function getConnectMethod($persistent)
3131
{
32+
// PHP 8.1 Activate Exception per default, revert behavior to "return false"
33+
mysqli_report(MYSQLI_REPORT_OFF);
34+
3235
return 'mysqli_connect';
3336
}
3437

0 commit comments

Comments
 (0)