#34587 [NEW]: PDO::__construct() error
| From: | firman@php.net | Date: | Wed, 21 Sep 2005 18:41:02 +0000 |
| Subject: | #34587 [NEW]: PDO::__construct() error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85378@lists.php.net to get a copy of this message | ||
From: firman@php.net
Operating system: Windows XP Professional
PHP version: 5.1.0RC1
PHP Bug Type: PDO related
Bug description: PDO::__construct() error
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 bug report at http://bugs.php.net/?id=34587&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34587&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34587&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34587&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34587&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34587&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34587&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34587&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34587&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34587&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34587&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34587&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34587&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34587&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34587&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34587&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34587&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34587&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34587&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34587&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34587&r=mysqlcfg