#41522 [Com]: PDO firebird driver returns null if it fails to connect

From: Date: Fri, 12 Oct 2007 20:26:01 +0000
Subject: #41522 [Com]: PDO firebird driver returns null if it fails to connect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118495@lists.php.net to get a copy of this message
ID: 41522 Comment by: Lars dot Westermann at privat dot dk Reported By: mark-phpbugs at vectrex dot org dot uk Status: Assigned Bug Type: PDO related Operating System: Linux PHP Version: 5.2.2 Assigned To: abies New Comment: See comment for bug #39822, where a fix is suggested. Greetings, Lars 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

« previous php.bugs (#118495) next »