From: Ilia Alshanetsky Date: Mon, 6 Feb 2006 14:25:07 +0000 (+0000) Subject: Fixed test to work when TCP/IP access to MySQL is disabled or test server X-Git-Tag: php-5.1.3RC1~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0d912490d1b0c42020ba108d176486cde860459;p=php Fixed test to work when TCP/IP access to MySQL is disabled or test server is on a remote machine. --- diff --git a/ext/mysql/tests/001.phpt b/ext/mysql/tests/001.phpt index 8a7c9d22c8..4f79ae3efa 100755 --- a/ext/mysql/tests/001.phpt +++ b/ext/mysql/tests/001.phpt @@ -8,11 +8,6 @@ mysql connect include 'connect.inc'; $test = ''; -/*** test mysql_connect 127.0.0.1 ***/ -$db = mysql_connect('127.0.0.1', $user, $passwd); -$test .= ($db) ? '1' : '0'; -mysql_close($db); - /*** test mysql_connect localhost ***/ $db = mysql_connect($host, $user, $passwd); $test .= ($db) ? '1' : '0'; @@ -27,4 +22,4 @@ var_dump($test); ?> --EXPECT-- -string(3) "111" +string(2) "11"