Annotation of embedaddon/php/ext/mysqli/tests/mysqli_options_openbasedir.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: mysqli_options() - MYSQLI_OPT_LOCAL_INFILE and open_basedir
3: --SKIPIF--
4: <?php
5: require_once('skipif.inc');
6: require_once('skipifemb.inc');
7: require_once('skipifconnectfailure.inc');
8: ?>
9: --INI--
10: --FILE--
11: <?php
12: require_once('connect.inc');
1.1.1.2 ! misho 13: ini_set("open_basedir", __DIR__);
1.1 misho 14: if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
15: printf("[001] Cannot connect, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
16:
17: if (false !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1))
18: printf("[002] Can set MYSQLI_OPT_LOCAL_INFILE although open_basedir is set!\n");
19:
20: mysqli_close($link);
21: print "done!";
22: ?>
23: --EXPECTF--
24: done!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>