php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80789 Return type includes false
Submitted: 2021-02-23 11:37 UTC Modified: 2021-02-23 12:26 UTC
From: php at hatlak dot de Assigned: cmb (profile)
Status: Closed Package: PDO Core
PHP Version: 7.4.15 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 + 25 = ?
Subscribe to this entry?

 
 [2021-02-23 11:37 UTC] php at hatlak dot de
Description:
------------
---
From manual page: https://php.net/pdostatement.fetchall
---

"An empty array is returned if there are zero results to fetch, or false on failure."

The return type does not currently reflect that.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-23 12:26 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2021-02-23 12:39 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=0eaef37f83899ede9347b96611e79bd8e181f2dc
Log: Fix #80789: Return type includes false
 [2021-02-23 12:39 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2021-02-23 12:54 UTC] mumumu@php.net
Automatic comment on behalf of mumumu@mumumu.org
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=263d0d6afcbc75d5c83dad4ae56b3de7c888b322
Log: Fix #80789: Return type includes false
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC