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