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