php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60119 host="localhost" lost in mysqlnd_ms_get_last_used_connection()
Submitted: 2011-10-24 09:48 UTC Modified: 2011-10-27 13:40 UTC
From: uw@php.net Assigned: uw (profile)
Status: Closed Package: mysqlnd_ms (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 50 = ?
Subscribe to this entry?

 
 [2011-10-24 09:48 UTC] uw@php.net
Description:
------------
mysqlnd_ms_get_last_used_connection() reports wrong host, if host is "localhost". In that case, the host reported is "".



Test script:
---------------
Tests in the repository fail, if configured appropriately.

FAILED TEST SUMMARY                                                  
---------------------------------------------------------------------
mysqlnd_ms_get_last_used_connection() [/home/nixnutz/php/php-src/pecl/mysqlnd_ms/trunk/tests/mysqlnd_ms_get_last_used_connection.phpt]
mysqlnd_ms_get_last_used_connection() switching [/home/nixnutz/php/php-src/pecl/mysqlnd_ms/trunk/tests/mysqlnd_ms_get_last_used_connection_switches.phpt]


Expected result:
----------------
host="localhost" not host=""

Actual result:
--------------
host=""

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-24 09:49 UTC] uw@php.net
-Assigned To: +Assigned To: andrey
 [2011-10-26 14:18 UTC] uw@php.net
-Status: Assigned +Status: To be documented -Assigned To: andrey +Assigned To: uw
 [2011-10-26 14:18 UTC] uw@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2011-10-26 14:57 UTC] uw@php.net
Automatic comment from SVN on behalf of uw
Revision: http://svn.php.net/viewvc/?view=revision&revision=318441
Log: Docs for bug #60119
 [2011-10-26 14:58 UTC] uw@php.net
-Status: To be documented +Status: Open
 [2011-10-26 14:58 UTC] uw@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Documentation pushed. Will appear online shortly.
 [2011-10-27 13:40 UTC] johannes@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 04:01:30 2024 UTC