[DOC-CVS] [doc-en] master: MySQLi: connect_error returns last error (fix #2554)

[email protected] (Jakub Vrana)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Jakub Vrana (vrana)
Date: 2025-04-20T00:14:55+02:00

Commit: https://github.com/php/doc-en/commit/a87dfa33829abeafe3a0bcebdb57e117ebf6017d
Raw diff: https://github.com/php/doc-en/commit/a87dfa33829abeafe3a0bcebdb57e117ebf6017d.diff

MySQLi: connect_error returns last error (fix #2554)

Changed paths:
  M  reference/mysqli/mysqli/connect-errno.xml
  M  reference/mysqli/mysqli/connect-error.xml


Diff:

diff --git a/reference/mysqli/mysqli/connect-errno.xml b/reference/mysqli/mysqli/connect-errno.xml
index 9ae29b1d27e9..3ebc4a1359fe 100644
--- a/reference/mysqli/mysqli/connect-errno.xml
+++ b/reference/mysqli/mysqli/connect-errno.xml
@@ -32,6 +32,10 @@
    An error code for the last connection attempt, if it failed.
    Zero means no error occurred.
   </para>
+  <para>
+   Returns the last connection error code regardless of the instance on which it
+   is called.
+  </para>
  </refsect1>
 
  <refsect1 role="examples">
diff --git a/reference/mysqli/mysqli/connect-error.xml b/reference/mysqli/mysqli/connect-error.xml
index 968137adad28..b27deb12ebc1 100644
--- a/reference/mysqli/mysqli/connect-error.xml
+++ b/reference/mysqli/mysqli/connect-error.xml
@@ -31,6 +31,10 @@
   <para>
    A string that describes the error. &null; is returned if no error occurred.
   </para>
+  <para>
+   Returns the last connection error regardless of the instance on which it is
+   called.
+  </para>
  </refsect1>
 
  <refsect1 role="examples">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.