Edit report at https://bugs.php.net/bug.php?id=55558&edit=1

 ID:                 55558
 Updated by:         [email protected]
 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

Reply via email to