We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b00878 commit 2bbd33aCopy full SHA for 2bbd33a
lib/database/sfMySQLiDatabase.class.php
@@ -18,6 +18,18 @@
18
class sfMySQLiDatabase extends sfMySQLDatabase
19
{
20
21
+ /**
22
+ * @return void
23
+ * @throws sfDatabaseException
24
+ */
25
+ public function connect()
26
+ {
27
+ // PHP 8.1 Activate Exception per default, revert behavior to "return false"
28
+ mysqli_report(MYSQLI_REPORT_OFF);
29
+
30
+ parent::connect();
31
+ }
32
33
/**
34
* Returns the appropriate connect method.
35
*
@@ -29,9 +41,6 @@ class sfMySQLiDatabase extends sfMySQLDatabase
41
*/
42
protected function getConnectMethod($persistent)
43
- // PHP 8.1 Activate Exception per default, revert behavior to "return false"
- mysqli_report(MYSQLI_REPORT_OFF);
-
44
return 'mysqli_connect';
36
45
}
37
46
0 commit comments