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