--TEST-- mysqli.local_infile_directory access denied --SKIPIF-- errno, $link->error)); mysqli_close($link); ?> --INI-- open_basedir={PWD} mysqli.allow_local_infile=0 mysqli.local_infile_directory={PWD}/foo/bar --FILE-- query("DROP TABLE IF EXISTS test")) { printf("[002] [%d] %s\n", $link->errno, $link->error); } if (!$link->query("CREATE TABLE test (id INT UNSIGNED NOT NULL PRIMARY KEY) ENGINE=" . $engine)) { printf("[003] [%d] %s\n", $link->errno, $link->error); } $filepath = str_replace('\\', '/', __DIR__.'/foo/foo.data'); if (!$link->query("LOAD DATA LOCAL INFILE '".$filepath."' INTO TABLE test")) { printf("[004] [%d] %s\n", $link->errno, $link->error); } else { printf("[005] bug! should not happen - access denied expected\n"); } $link->close(); echo "done"; ?> --CLEAN-- query($link, 'DROP TABLE IF EXISTS test')) { printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); } $link->close(); ?> --EXPECTF-- [004] [2068] LOAD DATA LOCAL INFILE %s done