Bug #72701 [Opn->Csd]: MYSQLI_GET_HOST_INFO
| From: | ab@php.net | Date: | Fri, 29 Jul 2016 15:02:54 +0000 |
| Subject: | Bug #72701 [Opn->Csd]: MYSQLI_GET_HOST_INFO | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202704@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72701&edit=1
ID: 72701
Updated by: ab@php.net
Reported by: tm8544 at hotmail dot com
Summary: MYSQLI_GET_HOST_INFO
-Status: Open
+Status: Closed
Type: Bug
Package: MySQLi related
Operating System: Windows 10 x64
PHP Version: 7.1.0beta1
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8033fb4044f1f7de0e8303098e19e2cfceee4014
Log: Fixed bug #72701 mysqli_get_host_info() wrong output
Previous Comments:
------------------------------------------------------------------------
[2016-07-28 19:40:09] tm8544 at hotmail dot com
Description:
------------
Function mysqli_get_host_info() gives random string for the ip-part of the returned string.
Test script:
---------------
<?php
$con=mysqli_connect("127.0.0.1,"my_user","my_password","my_db");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
echo mysqli_get_host_info($con);
mysqli_close($con);
?>
Expected result:
----------------
127.0.0.1 via TCP/IP
Actual result:
--------------
changes every time I refresh the browser, for example
00@üp via TCP/IP
0PFüp via TCP/IP
0Pæûp via TCP/IP
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72701&edit=1