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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: uw@php.net
New email:
PHP Version: OS:

 

 [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: Thu Apr 18 18:01:28 2024 UTC