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