Skip to content

Commit 7ae16a6

Browse files
committed
PHP 8.1 > mysqli_report revert to off
https://php.watch/versions/8.1/mysqli-error-mode
1 parent 09ec92e commit 7ae16a6

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)