Bug #72701 [NEW]: MYSQLI_GET_HOST_INFO
| From: | tm8544 at hotmail dot com | Date: | Thu, 28 Jul 2016 19:40:12 +0000 |
| Subject: | Bug #72701 [NEW]: MYSQLI_GET_HOST_INFO | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-202684@lists.php.net to get a copy of this message | ||
From: tm8544 at hotmail dot com
Operating system: Windows 10 x64
PHP version: 7.1.0beta1
Package: MySQLi related
Bug Type: Bug
Bug description:MYSQLI_GET_HOST_INFO
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 bug report at https://bugs.php.net/bug.php?id=72701&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72701&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72701&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72701&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72701&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72701&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72701&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72701&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72701&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72701&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72701&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72701&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72701&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72701&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72701&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72701&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72701&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72701&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72701&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72701&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72701&r=mysqlcfg