1--TEST--
2Test open_basedir configuration
3--INI--
4open_basedir=.
5--FILE--
6<?php
7require_once "open_basedir.inc";
8test_open_basedir("is_writable");
9?>
10--CLEAN--
11<?php
12require_once "open_basedir.inc";
13delete_directories();
14?>
15--EXPECTF--
16*** Testing open_basedir configuration [is_writable] ***
17bool(true)
18bool(true)
19bool(true)
20bool(true)
21bool(true)
22
23Warning: is_writable(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
24bool(false)
25
26Warning: is_writable(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
27bool(false)
28
29Warning: is_writable(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
30bool(false)
31
32Warning: is_writable(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
33bool(false)
34
35Warning: is_writable(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
36bool(false)
37
38Warning: is_writable(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
39bool(false)
40
41Warning: is_writable(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
42bool(false)
43
44Warning: is_writable(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
45bool(false)
46
47Warning: is_writable(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
48bool(false)
49bool(true)
50bool(true)
51bool(true)
52bool(true)
53bool(true)
54*** Finished testing open_basedir configuration [is_writable] ***
55