diff options
| author | Dharman <tekiela246@gmail.com> | 2021-01-20 22:50:55 +0000 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-15 14:55:31 +0100 |
| commit | 5e1056edb614fbec5ffbc6b49e5cd714542a455d (patch) | |
| tree | d98fe7b60f6c8cd95ea20686cbf828a8067480e8 /ext/mysqli/tests/connect.inc | |
| parent | b82b85709d8017b94a34570bbb694a97ab26e71a (diff) | |
| download | php-git-5e1056edb614fbec5ffbc6b49e5cd714542a455d.tar.gz | |
Change the default error mode of mysqli
Make MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT the new mysqli
error reporting default. Explicitly call
mysqli_report(MYSQLI_REPORT_OFF) to preserve previous behavior.
RFC: https://wiki.php.net/rfc/mysqli_default_errmode
Closes GH-6629.
Diffstat (limited to 'ext/mysqli/tests/connect.inc')
| -rw-r--r-- | ext/mysqli/tests/connect.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysqli/tests/connect.inc b/ext/mysqli/tests/connect.inc index 0fb3cff66c..e8f56cf249 100644 --- a/ext/mysqli/tests/connect.inc +++ b/ext/mysqli/tests/connect.inc @@ -7,6 +7,7 @@ */ $driver = new mysqli_driver; + $driver->report_mode = MYSQLI_REPORT_OFF; $host = getenv("MYSQL_TEST_HOST") ?: "127.0.0.1"; $port = getenv("MYSQL_TEST_PORT") ?: 3306; |
