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--FILE-- 10<?php 11 require_once('connect.inc'); 12 ini_set("open_basedir", __DIR__); 13 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 14 printf("[001] Cannot connect, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); 15 16 if (false !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)) 17 printf("[002] Can set MYSQLI_OPT_LOCAL_INFILE although open_basedir is set!\n"); 18 19 mysqli_close($link); 20 print "done!"; 21?> 22--EXPECTF-- 23done! 24