Bug #63386 [Opn->Nab]: mysqli_connect_error may not include username

From: Date: Wed, 30 Jan 2013 16:14:59 +0000
Subject: Bug #63386 [Opn->Nab]: mysqli_connect_error may not include username
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-176352@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63386&edit=1

 ID:                 63386
 Updated by:         uw@php.net
 Reported by:        mark at invisionpower dot com
 Summary:            mysqli_connect_error may not include username
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            MySQLi related
 Operating System:   OS X 10.8.2
 PHP Version:        5.4.8
 Block user comment: N
 Private report:     N

 New Comment:

This is not API related. This message comes from the server and is shown to you "as-is".
If you don't like it, please file a bug at bugs.mysql.com requesting the server to improve its
error message.


Previous Comments:
------------------------------------------------------------------------
[2012-10-29 16:15:56] mark at invisionpower dot com

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 this bug report at https://bugs.php.net/bug.php?id=63386&edit=1


Thread (2 messages)

« previous php.bugs (#176352) next »