Skip to content

Commit a87dfa3

Browse files
committed
MySQLi: connect_error returns last error (fix #2554)
1 parent 1c1a7fa commit a87dfa3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

reference/mysqli/mysqli/connect-errno.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
An error code for the last connection attempt, if it failed.
3333
Zero means no error occurred.
3434
</para>
35+
<para>
36+
Returns the last connection error code regardless of the instance on which it
37+
is called.
38+
</para>
3539
</refsect1>
3640

3741
<refsect1 role="examples">

reference/mysqli/mysqli/connect-error.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
<para>
3232
A string that describes the error. &null; is returned if no error occurred.
3333
</para>
34+
<para>
35+
Returns the last connection error regardless of the instance on which it is
36+
called.
37+
</para>
3438
</refsect1>
3539

3640
<refsect1 role="examples">

0 commit comments

Comments
 (0)