From: Ulf Wendel Date: Thu, 12 Jul 2007 20:07:05 +0000 (+0000) Subject: Some tests intentionally fail connecting to the DB. Not being able to X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e48a29bb4d08c8ba43cb96f0b850b813a0b12e2b;p=php Some tests intentionally fail connecting to the DB. Not being able to connect is no reason to skip the test. Also, no test should have hard-wired connection parameter in it. Connection parameters come from connect.inc (see environment variables in connect.inc). --- diff --git a/ext/mysqli/tests/skipif.inc b/ext/mysqli/tests/skipif.inc index e6b71cbd5d..5562aab84b 100644 --- a/ext/mysqli/tests/skipif.inc +++ b/ext/mysqli/tests/skipif.inc @@ -2,8 +2,4 @@ if (!extension_loaded('mysqli')){ die('skip mysqli extension not available'); } -include "connect.inc"; -if (!@mysqli_connect($host, $user, $passwd, "", 3306)) { - die('skip could not connect to MySQL'); -} ?>