[PHP 8.1] Updated mysqli error reporting (#1024)

This commit is contained in:
Kamil Tekiela 2021-10-18 12:02:07 +01:00 committed by GitHub
parent 80dd9db3b7
commit 4f93fb38da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,8 @@
it will also inform about queries that don't use an index (or use a bad index).
</para>
<para>
The default setting is <constant>MYSQLI_REPORT_OFF</constant>.
As of PHP 8.1.0, the default setting is <literal>MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT</literal>.
Previously, it was <constant>MYSQLI_REPORT_OFF</constant>.
</para>
</refsect1>
@ -48,7 +49,7 @@
<tbody>
<row>
<entry><constant>MYSQLI_REPORT_OFF</constant></entry>
<entry>Turns reporting off (the default)</entry>
<entry>Turns reporting off</entry>
</row>
<row>
<entry><constant>MYSQLI_REPORT_ERROR</constant></entry>
@ -86,6 +87,29 @@
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.1.0</entry>
<entry>
The default value is now <literal>MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT</literal>.
Previously, it was <constant>MYSQLI_REPORT_OFF</constant>.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>