File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
security /
open_basedir_realpath.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: --SKIPIF--
4: <?php
5: if (substr(PHP_OS, 0, 3) != 'WIN') {
6: die('skip only run on Windows');
7: }
8: ?>
9: --INI--
10: open_basedir=.
11: --FILE--
12: <?php
13: require_once "open_basedir.inc";
14: test_open_basedir("realpath");
15: ?>
16: --CLEAN--
17: <?php
18: require_once "open_basedir.inc";
19: delete_directories();
20: ?>
21: --EXPECTF--
22: *** Testing open_basedir configuration [realpath] ***
23: bool(true)
24: bool(true)
25: bool(true)
26: bool(true)
27: bool(true)
28:
29: Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad) is not within the allowed path(s): (.) in %s on line %d
30: bool(false)
31:
32: Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad\bad.txt) is not within the allowed path(s): (.) in %s on line %d
33: bool(false)
34:
35: Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed path(s): (.) in %s on line %d
36: bool(false)
37:
38: Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed path(s): (.) in %s on line %d
39: bool(false)
40:
41: Warning: realpath(): open_basedir restriction in effect. File(%s\) is not within the allowed path(s): (.) in %s on line %d
42: bool(false)
43:
44: Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad) is not within the allowed path(s): (.) in %s on line %d
45: bool(false)
46:
47: Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad\bad.txt) is not within the allowed path(s): (.) in %s on line %d
48: bool(false)
49:
50: Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad\bad.txt) is not within the allowed path(s): (.) in %s on line %d
51: bool(false)
52:
53: Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed path(s): (.) in %s on line %d
54: bool(false)
55: string(%d) "%s\test\ok"
56: string(%d) "%s\test\ok\ok.txt"
57: string(%d) "%s\test\ok\ok.txt"
58: string(%d) "%s\test\ok\ok.txt"
59: string(%d) "%s\test\ok\ok.txt"
60: *** Finished testing open_basedir configuration [realpath] ***
61:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>