|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-21 16:40 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
Description: ------------ Sorry for me bad English - i hope you can understand me: I created a PHP without the drivers for PDO-MySQL and tryed to use the PDO-MYSQL. Then an error-message occurs: Uncaught exception 'PDOException' with message 'could not find driver' in $file:5 Stack trace: #0 $file(5): PDO->__construct('mysql:host=loca...', 'username', 'password') #1 {main} thrown in $file on line 5 It is not really a bug, but it is not to nice, to show the user my MySQL username and password. Reproduce code: --------------- $user = "username"; $pass = "password"; $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass); Expected result: ---------------- Error Message like: Uncaught exception 'PDOException' with message 'could not find driver' in $file:5 Stack trace: #0 $file(5): PDO->__construct('mysql:host=loca...', 'username', 'password') #1 {main} thrown in $file on line 5