1--TEST--
2Bug #74432, BC issue on undocumented connect string
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10    /* This behavior is undocumented, but might be in use. Until there's no officially
11        supported alternative, ensure changes doesn't cause BC breach. Otherwise,
12        the test should be removed once the undocumented behavior changes. */
13
14    require_once("connect.inc");
15
16    $handle = mysqli_connect("$host:$port", $user, $passwd);
17
18    var_dump($handle);
19
20    if ($handle) {
21        mysqli_close($handle);
22    }
23?>
24--EXPECTF--
25object(mysqli)#%d (%d) {
26%A
27}
28