#34587 [Fbk->Csd]: PDO::__construct() error
| From: | firman@php.net | Date: | Fri, 23 Sep 2005 02:13:08 +0000 |
| Subject: | #34587 [Fbk->Csd]: PDO::__construct() error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85469@lists.php.net to get a copy of this message | ||
ID: 34587
User updated by: firman@php.net
Reported By: firman@php.net
-Status: Feedback
+Status: Closed
Bug Type: PDO related
Operating System: Windows XP Professional
PHP Version: 5.1.0RC1
New Comment:
On the php info page, available PDO drivers: sqlite2. Then I tried edit
my dsn to "sqlite2:D:/DB/SQLite/test.db2". It's work fine. I dunno,
seems PDO changes in PHP 5.1.0RC1. Ok fine now, I closed this bugs.
Sorry for the noise. Thanks
Previous Comments:
------------------------------------------------------------------------
[2005-09-21 20:50:53] helly@php.net
Are you sure pdo_sqlite has been loaded? Try php -m.
------------------------------------------------------------------------
[2005-09-21 20:41:02] firman@php.net
Description:
------------
A PDO::__construct() throwed an exception when I tried to open sqlite
database, seem no driver for sqlite.
My dsn is work fine in PHP 5.0.5.
Reproduce code:
---------------
<?php
$dbh = new PDO('sqlite:D:/DB/SQLite/test.db3');
?>
Expected result:
----------------
$dbh is a PDO object.
Actual result:
--------------
Fatal error: Uncaught exception 'PDOException' with message 'could not
find driver'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34587&edit=1