| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2016-07-29 15:02 UTC] ab@php.net
  [2016-07-29 15:02 UTC] ab@php.net
 
-Status: Open
+Status: Closed
  [2016-10-17 10:10 UTC] bwoebi@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 03:00:01 2025 UTC | 
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