Bug #63386 [NEW]: mysqli_connect_error may not include username
| From: | mark at invisionpower dot com | Date: | Mon, 29 Oct 2012 16:15:56 +0000 |
| Subject: | Bug #63386 [NEW]: mysqli_connect_error may not include username | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-174409@lists.php.net to get a copy of this message | ||
From: mark at invisionpower dot com
Operating system: OS X 10.8.2
PHP version: 5.4.8
Package: MySQLi related
Bug Type: Bug
Bug description:mysqli_connect_error may not include username
Description:
------------
If attempting to connect to a database using the MySQL Improved Extension
using a
username but a blank password, and that user does not exist, the error
message
does not specify the attempted username.
See attached test script and expected/actual output.
Test script:
---------------
$mysqli = new mysqli( 'localhost', 'foo', '', 'dbname' );
echo $mysqli->connect_error;
Expected result:
----------------
Access denied for user 'foo'@'localhost' to database 'dbname'
Actual result:
--------------
Access denied for user ''@'localhost' to database 'dbname'
--
Edit bug report at https://bugs.php.net/bug.php?id=63386&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63386&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63386&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63386&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63386&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63386&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63386&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63386&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63386&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63386&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63386&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63386&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63386&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63386&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63386&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63386&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63386&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63386&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63386&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63386&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63386&r=mysqlcfg