andrey Wed Feb 6 15:34:35 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/mysql/tests mysql_connect.phpt Log: Fix a test http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/mysql_connect.phpt?r1=1.2.2.2&r2=1.2.2.3&diff_format=u Index: php-src/ext/mysql/tests/mysql_connect.phpt diff -u php-src/ext/mysql/tests/mysql_connect.phpt:1.2.2.2 php-src/ext/mysql/tests/mysql_connect.phpt:1.2.2.3 --- php-src/ext/mysql/tests/mysql_connect.phpt:1.2.2.2 Wed Oct 10 09:51:45 2007 +++ php-src/ext/mysql/tests/mysql_connect.phpt Wed Feb 6 15:34:35 2008 @@ -82,12 +82,12 @@ } /* we don't care if we can connect or not, this is just to test the different connect syntax variants */ -$myhost = sprintf('%s:%d', $host, $port - 100); +$myhost = sprintf('%s:%d', $host, $port ); if ($link = mysql_connect($myhost, $user, $passwd, true)) mysql_close($link); /* interesting, isn't it? */ -$myhost = sprintf('%s:%d:%s', $host, $port - 100, $socket); +$myhost = sprintf('%s:%d', $host, $port , $socket); if ($link = mysql_connect($myhost, $user, $passwd, true)) mysql_close($link); @@ -95,4 +95,4 @@ ?> --EXPECTF-- Warning: mysql_connect(): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d -done! \ No newline at end of file +done!
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php