mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fix #81066: Documentation conflicts about default PDO error mode
This commit is contained in:
parent
e2c7b3635d
commit
1fe877df2e
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
<constant>PDO::ERRMODE_SILENT</constant>
|
||||
</para>
|
||||
<para>
|
||||
This is the default mode. PDO will simply set the error code for you
|
||||
Prior to PHP 8.0.0, this was the default mode. PDO will simply set the error code for you
|
||||
to inspect using the <function>PDO::errorCode</function> and
|
||||
<function>PDO::errorInfo</function> methods on both the
|
||||
statement and database objects; if the error resulted from a call on a
|
||||
|
@ -41,6 +41,7 @@
|
|||
<constant>PDO::ERRMODE_EXCEPTION</constant>
|
||||
</para>
|
||||
<para>
|
||||
As of PHP 8.0.0, this is the default mode.
|
||||
In addition to setting the error code, PDO will throw a
|
||||
<classname>PDOException</classname>
|
||||
and set its properties to reflect the error code and error
|
||||
|
|
Loading…
Reference in a new issue