1--TEST--
2ensure default for local infile is off
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7require_once('skipifconnectfailure.inc');
8?>
9--FILE--
10<?php
11require_once("connect.inc");
12
13$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
14$res = mysqli_query($link, 'SHOW VARIABLES LIKE "local_infile"');
15$row = mysqli_fetch_assoc($res);
16echo "server: ", $row['Value'], "\n";
17mysqli_free_result($res);
18mysqli_close($link);
19
20echo 'connector: ', ini_get('mysqli.allow_local_infile'), ' ', var_export(ini_get('mysqli.local_infile_directory')), "\n";
21
22print "done!\n";
23?>
24--EXPECTF--
25server: %s
26connector: 0 ''
27done!
28