]> granicus.if.org Git - php/commitdiff
Fixed test to work when TCP/IP access to MySQL is disabled or test server
authorIlia Alshanetsky <iliaa@php.net>
Mon, 6 Feb 2006 14:25:07 +0000 (14:25 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 6 Feb 2006 14:25:07 +0000 (14:25 +0000)
is on a remote machine.

ext/mysql/tests/001.phpt

index 8a7c9d22c800d7c8ab57a0b3a1680209326c67bd..4f79ae3efa53883def203505bf0dd94988372ef1 100755 (executable)
@@ -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"