#41522 [Asn->Csd]: PDO firebird driver returns null if it fails to connect
| From: | lwe@php.net | Date: | Tue, 30 Oct 2007 22:50:14 +0000 |
| Subject: | #41522 [Asn->Csd]: PDO firebird driver returns null if it fails to connect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119113@lists.php.net to get a copy of this message | ||
ID: 41522
Updated by: lwe@php.net
Reported By: mark-phpbugs at vectrex dot org dot uk
-Status: Assigned
+Status: Closed
Bug Type: PDO related
Operating System: Linux
PHP Version: 5.2.2
Assigned To: abies
New Comment:
Fixed in CVS (PHP_5_3 branch)
Previous Comments:
------------------------------------------------------------------------
[2007-10-12 20:26:01] Lars dot Westermann at privat dot dk
See comment for bug #39822, where a fix is suggested.
Greetings,
Lars
------------------------------------------------------------------------
[2007-05-28 17:08:09] mark-phpbugs at vectrex dot org dot uk
Description:
------------
The firebird PDO driver returns nothing, or null if it fails to connect
- this is contradictory to what the PDO documentation says (should throw
PDOException) and the behaviour of the other drivers.
Reproduce code:
---------------
$conn = new PDO("firebird:dbname=localhost:test.fdb",
'SYSDBA','wrong password');
Expected result:
----------------
It should throw a PDOException, ideally with an explanation or error
code.
Actual result:
--------------
Returns NULL with no errors or warnings even with
error_reporting(E_ALL)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41522&edit=1