php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50022 PDO::query returns false on failure
Submitted: 2009-10-27 17:46 UTC Modified: 2009-10-28 13:01 UTC
From: liam at morland dot ca Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.2.11 OS:
Private report: No CVE-ID: None
 [2009-10-27 17:46 UTC] liam at morland dot ca
Description:
------------
PDO::query returns false on failure. Documentation states that it always returns a PDOStatement object.

Reproduce code:
---------------
---
From manual page: pdo.query#Return Values
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-28 13:01 UTC] svn@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=290027
Log: False is a valid return. Fix #50022
 [2009-10-28 13:01 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=4f7498ac51c5227c0b40906535ddca1566e7b1df
Log: False is a valid return. Fix #50022
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 00:00:02 2026 UTC