#41522 [Opn->Asn]: PDO firebird driver returns null if it fails to connect
| From: | tony2001@php.net | Date: | Tue, 03 Jul 2007 07:04:37 +0000 |
| Subject: | #41522 [Opn->Asn]: PDO firebird driver returns null if it fails to connect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114588@lists.php.net to get a copy of this message | ||
ID: 41522
Updated by: tony2001@php.net
Reported By: mark-phpbugs at vectrex dot org dot uk
-Status: Open
+Status: Assigned
Bug Type: PDO related
Operating System: Linux
PHP Version: 5.2.2
-Assigned To:
+Assigned To: abies
Previous Comments:
------------------------------------------------------------------------
[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