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