#49736 [Opn->Csd]: PDO::prepare return value description incomplete ?
| From: | vrana@php.net | Date: | Fri, 13 Nov 2009 21:44:13 +0000 |
| Subject: | #49736 [Opn->Csd]: PDO::prepare return value description incomplete ? | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3140@lists.php.net to get a copy of this message | ||
ID: 49736
Updated by: vrana@php.net
Reported By: michael202 at gmx dot de
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: linux
PHP Version: 5.3.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2009-11-13 21:44:12] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=290706
Log: Can return false (bug #49736)
------------------------------------------------------------------------
[2009-10-01 15:05:51] michael202 at gmx dot de
Description:
------------
PDO::prepare returns false OR an exception
because the return value depends on the error mode ?!?
default behaviour is:
return false
can be changed with
PDO->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
or
PDO->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
Is it configurable in the php.ini ?
Can you please specify the documentation ?
Reproduce code:
---------------
---
From manual page: pdo.prepare#Return Values
---
Expected result:
----------------
not relevant
Actual result:
--------------
not relevant
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49736&edit=1