]> granicus.if.org Git - php/commitdiff
This is not mysqli, where 5th parameter is port.
authorfoobar <sniper@php.net>
Mon, 20 Jun 2005 00:16:31 +0000 (00:16 +0000)
committerfoobar <sniper@php.net>
Mon, 20 Jun 2005 00:16:31 +0000 (00:16 +0000)
ext/mysql/tests/001.phpt

index 5d36462ba12768aaade45cc5ed05a80c5389deab..8a7c9d22c800d7c8ab57a0b3a1680209326c67bd 100755 (executable)
@@ -19,7 +19,7 @@ $test .= ($db) ? '1' : '0';
 mysql_close($db);
 
 /*** test mysql_connect localhost:port ***/
-$db = mysql_connect($host, $user, $passwd, '', 3306);
+$db = mysql_connect("{$host}:3306", $user, $passwd, '');
 $test .= ($db) ? '1' : '0';
 mysql_close($db);