Bug #55558 [NEW]: MySQL returns incorrect error message for test
| From: | simon at welsh dot co dot nz | Date: | Wed, 31 Aug 2011 22:06:09 +0000 |
| Subject: | Bug #55558 [NEW]: MySQL returns incorrect error message for test | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-163207@lists.php.net to get a copy of this message | ||
From:
Operating system: Mac OS 10.7
PHP version: 5.4SVN-2011-08-31 (SVN)
Package: MySQL related
Bug Type: Bug
Bug description:MySQL returns incorrect error message for test
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 bug report at https://bugs.php.net/bug.php?id=55558&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55558&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55558&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55558&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55558&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55558&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55558&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55558&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55558&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55558&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55558&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55558&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55558&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55558&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55558&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55558&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55558&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55558&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55558&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55558&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55558&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55558&r=mysqlcfg