Annotation of embedaddon/php/tests/security/open_basedir_realpath.phpt, revision 1.1.1.1

1.1       misho       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>