1--TEST-- 2mysqli_options() - MYSQLI_OPT_LOCAL_INFILE and open_basedir 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once('skipifemb.inc'); 7require_once('skipifconnectfailure.inc'); 8?> 9--INI-- 10open_basedir="." 11--FILE-- 12<?php 13 require_once('connect.inc'); 14 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 15 printf("[001] Cannot connect, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); 16 17 if (false !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)) 18 printf("[002] Can set MYSQLI_OPT_LOCAL_INFILE although open_basedir is set!\n"); 19 20 mysqli_close($link); 21 print "done!"; 22?> 23--EXPECTF-- 24done! 25