PHP  
 PHP_5_4
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Skip Report for ext/mysqli/tests/mysqli_set_local_infile_handler_openbasedir.phpt

Script

<?php
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.");

include_once(
'connect.inc');
if (!
$link my_mysqli_connect($host$user$passwd$db$port$socket))
    die(
"skip Cannot connect to MySQL");

if (!
$res mysqli_query($link'SHOW VARIABLES LIKE "local_infile"')) {
    
mysqli_close($link);
    die(
"skip Cannot check if Server variable 'local_infile' is set to 'ON'");
}

include_once(
"local_infile_tools.inc");
if (
$msg check_local_infile_support($link$engine))
    die(
sprintf("skip %s, [%d] %s"$msg$link->errno$link->error));

mysqli_close($link);
?>

Reason

open_basedir restrictions forbid opening include files

 

Generated at Sun, 20 Apr 2014 03:52:23 +0000 (5 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.