[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] [doc-en] master: Fix the return value description
From:       colshrapnel via GitHub <noreply () php ! net>
Date:       2022-03-25 10:26:30
Message-ID: jUpNmvnR4LZcamaKZ5bcoW2D6Sk3XwznkQLa4jUems () main ! php ! net
[Download RAW message or body]

Author: colshrapnel (colshrapnel)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2022-03-25T11:23:54+01:00

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


Fix the return value description

The comment in the source code \
[goes](https://github.com/php/php-src/blob/04a4864b655b6ace1150e512179f23ec0d47566f/ext/pdo/pdo_stmt.c#L1152) \
as "if there are no more rows" and doesn't mention any failure.

Closes GH-1480.

Changed paths:
  M  reference/pdo/pdostatement/fetch.xml


Diff:

diff --git a/reference/pdo/pdostatement/fetch.xml \
b/reference/pdo/pdostatement/fetch.xml index 1a741edc4ed..473d48b780b 100644
--- a/reference/pdo/pdostatement/fetch.xml
+++ b/reference/pdo/pdostatement/fetch.xml
@@ -138,7 +138,7 @@
   &reftitle.returnvalues;
   <para>
    The return value of this function on success depends on the fetch type. In
-   all cases, &false; is returned on failure.
+   all cases, &false; is returned on failure or if there are no more rows.
   </para>
  </refsect1>
 

-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic