diff --git a/ext/mysqli/tests/061.phpt b/ext/mysqli/tests/061.phpt index c7a217f2746..813fc052655 100644 --- a/ext/mysqli/tests/061.phpt +++ b/ext/mysqli/tests/061.phpt @@ -12,8 +12,10 @@ local infile handler return(strlen($buffer)); } - /*** test mysqli_connect 127.0.0.1 ***/ - $link = mysqli_connect($host, $user, $passwd, "test"); + /*** test mysqli_real_connect 127.0.0.1 ***/ + $link = mysqli_init(); + mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1); + mysqli_real_connect($link, $host, $user, $passwd, "test"); /* create temporary file */ $filename = dirname(__FILE__) . "061.csv"; diff --git a/ext/mysqli/tests/065.phpt b/ext/mysqli/tests/065.phpt index 09ee886ec57..f8cec7005f5 100644 --- a/ext/mysqli/tests/065.phpt +++ b/ext/mysqli/tests/065.phpt @@ -6,6 +6,9 @@ require_once('skipif.inc'); if (!function_exists('mysqli_set_charset')) { die('skip mysqli_set_charset() not available'); } +if (!mysqli_set_charset($con, "gbh") && mysqli_errno($con) == 2019) { + die('skip mysql compiled without gbh charset support'); +} ?> --FILE-- embedded && !@mysqli_connect($host, $user, $passwd, "", 3306)) { +if (!$driver->embedded && !($con = @mysqli_connect($host, $user, $passwd, "", 3306))) { die('skip could not connect to MySQL'); } ?>