Skip to content

Commit

Permalink
Fix #81189: PDOStatement::fetchAll() claims "false on failure" return
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Sep 20, 2021
1 parent 94af09d commit c807f27
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion reference/pdo/pdostatement/fetchall.xml
Expand Up @@ -114,7 +114,7 @@
all of the remaining rows in the result set. The array represents each
row as either an array of column values or an object with properties
corresponding to each column name. An empty array is returned if there
are zero results to fetch, or &false; on failure.
are zero results to fetch.
</para>
<para>
Using this method to fetch large result sets will result in a heavy
Expand All @@ -126,6 +126,29 @@
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>PHP 8.0.0</entry>
<entry>
This method always returns an &array; now, while previously &false; may have
been returned on failure.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down

0 comments on commit c807f27

Please sign in to comment.