Fix SKIPIF

This commit is contained in:
Ulf Wendel 2011-09-06 13:50:45 +00:00
parent 5ec2ee6c4d
commit a4fcb5f1bb
2 changed files with 8 additions and 5 deletions

View File

@ -7,7 +7,7 @@ mysqli->autocommit()
require_once('skipifconnectfailure.inc');
require_once('connect.inc');
if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) {
if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) {
printf("skip Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
$host, $user, $db, $port, $socket);
exit(1);

View File

@ -2,14 +2,17 @@
mysqli_set_local_infile_handler() - open basedir restrictions
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
if (!$fp = @fopen('skipif.inc', 'r'))
die("skip open_basedir restrictions forbid opening include files");
include_once('skipif.inc');
include_once('skipifemb.inc');
include_once('skipifconnectfailure.inc');
if (!function_exists('mysqli_set_local_infile_handler'))
die("skip - function not available.");
require_once('connect.inc');
include_once('connect.inc');
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
die("skip Cannot connect to MySQL");