mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
Fix SKIPIF
This commit is contained in:
parent
5ec2ee6c4d
commit
a4fcb5f1bb
@ -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);
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user