File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
security /
open_basedir_glob.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Test open_basedir configuration
3: --INI--
4: open_basedir=.
5: --FILE--
6: <?php
7: require_once "open_basedir.inc";
8: test_open_basedir("glob");
9: ?>
10: --CLEAN--
11: <?php
12: require_once "open_basedir.inc";
13: delete_directories();
14: ?>
15: --EXPECTF--
16: *** Testing open_basedir configuration [glob] ***
17: bool(true)
18: bool(true)
19: bool(true)
20: bool(true)
21: bool(true)
22: bool(false)
23: bool(false)
24: bool(false)
25: bool(false)
26: bool(false)
27: bool(false)
28: bool(false)
29: bool(false)
30: bool(false)
31: array(1) {
32: [0]=>
33: string(5) "../ok"
34: }
35: array(1) {
36: [0]=>
37: string(6) "ok.txt"
38: }
39: array(1) {
40: [0]=>
41: string(12) "../ok/ok.txt"
42: }
43: array(1) {
44: [0]=>
45: string(%d) "%s/test/ok/ok.txt"
46: }
47: array(1) {
48: [0]=>
49: string(%d) "%s/test/ok/../ok/ok.txt"
50: }
51: *** Finished testing open_basedir configuration [glob] ***
52:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>