From:             info at jonathanhogervorst dot com
Operating system: CentOS 4.5
PHP version:      5.2.6
PHP Bug Type:     PDO related
Bug description:  Your database login-data is displayed when a PDO-driver isn't 
available.

Description:
------------
I'm using PDO to connect to a MySQL-database. I moved my website to a  
new server, and when I opened the site I saw an error saying that the 
MySQL-plugin for PDO wasn't installed. In the error-text was my MySQL 
login-data displayed.

Reproduce code:
---------------
Run this code on a server without the MySQL-plugin for PDO:
<?php
$db = new PDO('mysql:host=host;dbname=db', 'usr', 'pass');
?>

Expected result:
----------------
A PDO-object in $db.

Actual result:
--------------
Fatal error: Uncaught exception 'PDOException' with message 'could 
not find driver' in /home/***/domains/***/public_html/db.php:2 Stack 
trace: #0 /home/***/domains/***/public_html/***.php(2): PDO-
>__construct('mysql:host=host...', 'usr', 'pass') #1 {main} thrown in 
/home/***/domains/***/public_html/db.php on line 2

-- 
Edit bug report at http://bugs.php.net/?id=46275&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46275&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46275&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46275&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46275&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46275&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46275&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46275&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46275&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46275&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46275&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46275&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46275&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46275&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46275&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46275&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46275&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46275&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46275&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46275&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46275&r=mysqlcfg

Reply via email to