Fix #81189: PDOStatement::fetchAll() claims "false on failure" return

This commit is contained in:
Christoph M. Becker 2021-09-20 12:14:54 +02:00
parent 94af09dfef
commit c807f27964
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

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