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