From 46b276ee4bf798bb0cf6980798b0752f8c0bdd01 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 22 Jun 2005 13:41:43 +0000 Subject: [PATCH] Skip MySQLi tests if connection could not be established and not using embeded db. --- ext/mysqli/tests/skipif.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/mysqli/tests/skipif.inc b/ext/mysqli/tests/skipif.inc index 5562aab84b..f471b5e126 100644 --- a/ext/mysqli/tests/skipif.inc +++ b/ext/mysqli/tests/skipif.inc @@ -2,4 +2,9 @@ if (!extension_loaded('mysqli')){ die('skip mysqli extension not available'); } +include "connect.inc"; +$driver = new mysqli_driver(); +if (!$driver->embedded && !@mysqli_connect($host, $user, $passwd, "", 3306)) { + die('skip could not connect to MySQL'); +} ?> -- 2.40.0