Bug #55558 [Opn->Wfx]: MySQL returns incorrect error message for test
| From: | uw@php.net | Date: | Fri, 02 Sep 2011 11:13:24 +0000 |
| Subject: | Bug #55558 [Opn->Wfx]: MySQL returns incorrect error message for test | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163243@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55558&edit=1
ID: 55558
Updated by: uw@php.net
Reported by: simon at welsh dot co dot nz
Summary: MySQL returns incorrect error message for test
-Status: Open
+Status: Wont fix
Type: Bug
Package: MySQL related
Operating System: Mac OS 10.7
PHP Version: 5.4SVN-2011-08-31 (SVN)
Block user comment: N
Private report: N
New Comment:
This is a MySQL server bug. Update to MySQL 5.5.15 and it's gone. If the test was not that
strict, this MySQL server bug had never been found.
Previous Comments:
------------------------------------------------------------------------
[2011-08-31 22:06:09] simon at welsh dot co dot nz
Description:
------------
With MySQL 5.5.10-log (64 bit package, downloaded from mysql.com), if the user
does not exist when connecting to the database, the error message returned is:
Access denied for user 'rootunknown_real'@'localhost' (using password: NO)
even when a password is supplied. This breaks both mysql_connect.phpt and
mysql_pconnect.phpt in 5.4, as they are expecting the result to be (using
password: YES).
This also happens when running mysql from the command line, so the test should
work around it.
If the two test cases my patch changes should be testing for YES, instead of just
an error, then change the connect/pconnect call to use $user rather than $user .
'unkown_real'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55558&edit=1