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