Lines Matching refs:function
19 function recursive_delete_directory($directory) {
60 function create_directories() {
71 function delete_directories() {
76 function test_open_basedir_error($function) {
78 var_dump($function("../bad"));
79 var_dump($function("../bad/bad.txt"));
80 var_dump($function(".."));
81 var_dump($function("../"));
82 var_dump($function("/"));
83 var_dump($function("../bad/."));
85 var_dump($function($directory."/test/bad/bad.txt"));
86 var_dump($function($directory."/test/bad/../bad/bad.txt"));
89 function test_open_basedir_before($function, $change = TRUE) {
91 echo "*** Testing open_basedir configuration [$function] ***\n";
104 function test_open_basedir_after($function) {
105 echo "*** Finished testing open_basedir configuration [$function] ***\n";
109 function test_open_basedir_array($function) {
112 test_open_basedir_before($function);
113 test_open_basedir_error($function);
114 var_dump(is_array($function("./../.")));
115 var_dump(is_array($function("../ok")));
116 var_dump(is_array($function("ok.txt")));
117 var_dump(is_array($function("../ok/ok.txt")));
119 var_dump(is_array($function($directory."/test/ok/ok.txt")));
120 var_dump(is_array($function($directory."/test/ok/../ok/ok.txt")));
121 test_open_basedir_after($function);
124 function test_open_basedir($function) {
126 test_open_basedir_before($function);
127 test_open_basedir_error($function);
128 var_dump($function("./../."));
129 var_dump($function("../ok"));
130 var_dump($function("ok.txt"));
131 var_dump($function("../ok/ok.txt"));
133 var_dump($function($directory."/test/ok/ok.txt"));
134 var_dump($function($directory."/test/ok/../ok/ok.txt"));
135 test_open_basedir_after($function);