Test: /ext/mysqli/tests/mysqli_open_bug74432.phpt - Version 7.4.20        

Bug #74432 mysqli_connect adding ":3306" to $host if $port parameter not given
Submitted: 2017-04-13 11:23:34 Modified: 2017-04-27 11:22:00
From: php.bugs Assigned: pollita
Status: Closed Package: MySQLi related
PHP Version: 7.0.18 OS: Linux x86_64

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
001+ Warning: mysqli_connect(): (HY000/2005): Unknown MySQL server host 'localhost:3306' (2) in %s/mysqli_open_bug74432.php on line 8 001- object(mysqli)#%d (%d) { 003- }
1 (50%)
001+ Warning: Packets out of order. Expected 0 received 1. Packet size=62 in %s/mysqli_open_bug74432.php on line 8 002+ 003+ Warning: mysqli_connect(): Error while reading greeting packet. PID=383076 in %s/mysqli_open_bug74432.php on line 8 004+ 005+ Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in %s/mysqli_open_bug74432.php on line 8 001- object(mysqli)#%d (%d) { 003- }