Bug #52054 [NEW]: Class 'PDO' not found
| From: | deuce at gt dot rr dot com | Date: | Fri, 11 Jun 2010 18:31:53 +0000 |
| Subject: | Bug #52054 [NEW]: Class 'PDO' not found | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-151349@lists.php.net to get a copy of this message | ||
From:
Operating system: linux kernel 2.6.27-grsec4
PHP version: 5.2.13
Package: PDO related
Bug Type: Bug
Bug description:Class 'PDO' not found
Description:
------------
When a specific database module is not installed and a PDO object of this
type is
called you receive an error reporting that PDO does not exist.
Test script:
---------------
<?php
$hostname = ""; // host
$dbname = ""; // db name
$username = ""; // username like 'sa'
$pw = ""; // password for the user
try {
$dbh = new PDO ("mssql:host={$hostname};dbname={$dbname}", $username,
$pw);
} catch (PDOException $e) {
echo "Failed to get DB handle: {$e->getMessage()} \n";
exit;
}
?>
Expected result:
----------------
Failed to get DB handle: could not find driver
Failed to get DB handle: could not find module
etc.
Actual result:
--------------
PHP Fatal error: Class 'PDO' not found in /home/../login.php on line 10
--
Edit bug report at http://bugs.php.net/bug.php?id=52054&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52054&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52054&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52054&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52054&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52054&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52054&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52054&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52054&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52054&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52054&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52054&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52054&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52054&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52054&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52054&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52054&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52054&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52054&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52054&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52054&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52054&r=mysqlcfg