|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41522 PDO firebird driver returns null if it fails to connect
Submitted: 2007-05-28 17:08 UTC Modified: 2007-10-30 22:50 UTC
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: mark-phpbugs at vectrex dot org dot uk Assigned: abies
Status: Closed Package: PDO related
PHP Version: 5.2.2 OS: Linux
Private report: No CVE-ID:
 [2007-05-28 17:08 UTC] mark-phpbugs at vectrex dot org dot uk
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)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-12 20:26 UTC] Lars dot Westermann at privat dot dk
See comment for bug #39822, where a fix is suggested.

 [2007-10-30 22:50 UTC]
Fixed in CVS (PHP_5_3 branch)
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 17:01:32 2015 UTC