Lines Matching refs:fopen

9 test_open_basedir_before("fopen");
11 var_dump(fopen("../bad", "r"));
12 var_dump(fopen("../bad/bad.txt", "r"));
13 var_dump(fopen("..", "r"));
14 var_dump(fopen("../", "r"));
15 var_dump(fopen("/", "r"));
16 var_dump(fopen("../bad/.", "r"));
17 var_dump(fopen("../bad/./bad.txt", "r"));
18 var_dump(fopen("./../.", "r"));
20 var_dump(fopen($initdir."/test/ok/ok.txt", "r"));
21 var_dump(fopen("./ok.txt", "r"));
22 var_dump(fopen("ok.txt", "r"));
23 var_dump(fopen("../ok/ok.txt", "r"));
24 var_dump(fopen("../ok/./ok.txt", "r"));
26 test_open_basedir_after("fopen");
34 *** Testing open_basedir configuration [fopen] ***
41 Warning: fopen(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s…
43 Warning: fopen(../bad): Failed to open stream: %s in %s on line %d
46 Warning: fopen(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowe…
48 Warning: fopen(../bad/bad.txt): Failed to open stream: %s in %s on line %d
51 Warning: fopen(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (…
53 Warning: fopen(..): Failed to open stream: %s in %s on line %d
56 Warning: fopen(): open_basedir restriction in effect. File(../) is not within the allowed path(s): …
58 Warning: fopen(../): Failed to open stream: %s in %s on line %d
61 Warning: fopen(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.…
63 Warning: fopen(/): Failed to open stream: %s in %s on line %d
66 Warning: fopen(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path…
68 Warning: fopen(../bad/.): Failed to open stream: %s in %s on line %d
71 Warning: fopen(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allo…
73 Warning: fopen(../bad/./bad.txt): Failed to open stream: %s in %s on line 12
76 Warning: fopen(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s…
78 Warning: fopen(./../.): Failed to open stream: %s in %s on line %d
85 *** Finished testing open_basedir configuration [fopen] ***