@@ -10,22 +10,22 @@ require_once('skipifconnectfailure.inc');
1010    require_once ("connect.inc " );
1111
1212    /* Initial persistent connection */ 
13-     $ mysql_1new  mysqli ('p: ' .$ host$ user$ passwd$ db
13+     $ mysql_1new  mysqli ('p: ' .$ host$ user$ passwd$ db,  $ port 
1414    $ result$ mysql_1query ("SHOW STATUS LIKE 'Connections' " );
1515    $ c1$ resultfetch_row ();
1616    $ resultfree ();
1717    $ mysql_1close ();
1818
1919    /* Failed connection to invalid host */ 
20-     $ mysql_2new  mysqli (' !!! invalid !!!  ' , $ user$ passwd$ db
20+     $ mysql_2new  mysqli (' !!! invalid !!!  ' , $ user$ passwd$ db,  $ port 
2121    try  {
2222        $ mysql_2close ();
2323    } catch  (Error $ exception
2424        echo  $ exceptiongetMessage () . "\n" ;
2525    }
2626
2727    /* Re-use persistent connection */ 
28-     $ mysql_3new  mysqli ('p: ' .$ host$ user$ passwd$ db
28+     $ mysql_3new  mysqli ('p: ' .$ host$ user$ passwd$ db,  $ port 
2929    $ errormysqli_connect_errno ();
3030    $ result$ mysql_3query ("SHOW STATUS LIKE 'Connections' " );
3131    $ c3$ resultfetch_row ();
0 commit comments