|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-16 13:52 UTC] wez@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
Description: ------------ Using PDO 1.0RC1. It would be nice if PDO didn't output the password parameter in clear text but somehow hid it when there's an uncaught exception. Reproduce code: --------------- new PDO("mysql:dbname=foo", "foo", "bar"); Expected result: ---------------- Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'foo'@'localhost' (using password: YES)' in Command line code:1 Stack trace: #0 Command line code(1): PDO->__construct('mysql:dbname=fo...', 'foo', 'HIDDEN') #1 {main} thrown in Command line code on line 1 Actual result: -------------- Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'foo'@'localhost' (using password: YES)' in Command line code:1 Stack trace: #0 Command line code(1): PDO->__construct('mysql:dbname=fo...', 'foo', 'bar') #1 {main} thrown in Command line code on line 1