1--TEST--
2*_include_path() tests
3--INI--
4include_path=.
5--FILE--
6<?php
7
8var_dump(get_include_path());
9var_dump(ini_restore("include_path"));
10
11var_dump(set_include_path("var"));
12var_dump(get_include_path());
13
14var_dump(ini_restore("include_path"));
15var_dump(get_include_path());
16
17var_dump(set_include_path(".:/path/to/dir"));
18var_dump(get_include_path());
19
20var_dump(ini_restore("include_path"));
21var_dump(get_include_path());
22
23var_dump(set_include_path(""));
24var_dump(get_include_path());
25
26var_dump(ini_restore("include_path"));
27var_dump(get_include_path());
28
29var_dump(ini_restore("include_path"));
30var_dump(get_include_path());
31
32echo "Done\n";
33?>
34--EXPECT--
35string(1) "."
36NULL
37string(1) "."
38string(3) "var"
39NULL
40string(1) "."
41string(1) "."
42string(14) ".:/path/to/dir"
43NULL
44string(1) "."
45bool(false)
46string(1) "."
47NULL
48string(1) "."
49NULL
50string(1) "."
51Done
52