mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
[PHP 8.1] Updated mysqli error reporting (#1024)
This commit is contained in:
parent
80dd9db3b7
commit
4f93fb38da
1 changed files with 26 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue