ID:               49320
 User updated by:  brandon at brandonsavage dot net
 Reported By:      brandon at brandonsavage dot net
 Status:           Open
 Bug Type:         PDO related
 Operating System: All
 PHP Version:      5.2.10
 New Comment:

The version is mentioned as 5.2.10 but i tested this in 5.3.0 and it
exists there as well.


Previous Comments:
------------------------------------------------------------------------

[2009-08-21 13:45:15] brandon at brandonsavage dot net

Description:
------------
The PDO extension should either return an object or throw an exception.
However, with PDO and the SQLite driver, this does not happen.

Reproduce code:
---------------
<?php

//Use the wrong driver so the connection fails
$pdo = new PDO('sqlite2:bookstore.db');

var_dump($pdo);

Expected result:
----------------
PDOException

Actual result:
--------------
null


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49320&edit=1

Reply via email to