php.net |  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
Votes:3
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 (profile)
Status: Closed Package: PDO related
PHP Version: 5.2.2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mark-phpbugs at vectrex dot org dot uk
New email:
PHP Version: OS:

 

 [2007-05-28 17:08 UTC] 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)

Patches

Pull Requests

History

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.

Greetings,
Lars
 [2007-10-30 22:50 UTC] lwe@php.net
Fixed in CVS (PHP_5_3 branch)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Apr 11 19:01:27 2025 UTC