#34587 [Opn->Fbk]: PDO::__construct() error

From: Date: Wed, 21 Sep 2005 18:50:54 +0000
Subject: #34587 [Opn->Fbk]: PDO::__construct() error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85379@lists.php.net to get a copy of this message
ID: 34587 Updated by: helly@php.net Reported By: firman@php.net -Status: Open +Status: Feedback Bug Type: PDO related Operating System: Windows XP Professional PHP Version: 5.1.0RC1 New Comment: Are you sure pdo_sqlite has been loaded? Try php -m. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#85379) next »