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