#41522 [NEW]: PDO firebird driver returns null if it fails to connect
| From: | mark-phpbugs at vectrex dot org dot uk | Date: | Mon, 28 May 2007 17:08:09 +0000 |
| Subject: | #41522 [NEW]: PDO firebird driver returns null if it fails to connect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-113113@lists.php.net to get a copy of this message | ||
From: mark-phpbugs at vectrex dot org dot uk
Operating system: Linux
PHP version: 5.2.2
PHP Bug Type: InterBase related
Bug description: PDO firebird driver returns null if it fails to connect
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 bug report at http://bugs.php.net/?id=41522&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41522&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41522&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41522&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41522&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41522&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41522&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41522&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41522&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41522&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41522&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41522&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41522&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41522&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41522&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41522&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41522&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41522&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41522&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41522&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41522&r=mysqlcfg