]> granicus.if.org Git - php/commitdiff
Some tests intentionally fail connecting to the DB. Not being able to
authorUlf Wendel <uw@php.net>
Thu, 12 Jul 2007 20:07:05 +0000 (20:07 +0000)
committerUlf Wendel <uw@php.net>
Thu, 12 Jul 2007 20:07:05 +0000 (20:07 +0000)
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).

ext/mysqli/tests/skipif.inc

index e6b71cbd5d669400afc3abf168c1a934a59dc5a3..5562aab84ba0624b71c689c7bb7c4b52011a35d4 100644 (file)
@@ -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');
-}
 ?>