Fix #81066: Documentation conflicts about default PDO error mode

This commit is contained in:
Christoph M. Becker 2021-05-21 18:14:23 +02:00
parent e2c7b3635d
commit 1fe877df2e
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -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