/
proc
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
file
/
File Upload :
llllll
Current File: //proc/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/file/chroot_001.phpt
--TEST-- chroot() --SKIPIF-- <?php chdir("/"); if (!@mkdir("testtmpskipifdir")) { die("skip for root only"); } rmdir("testtmpskipifdir"); if (!function_exists("chroot")) { die("skip chroot() not available"); } ?> --FILE-- <?php mkdir("chroot_001_x"); var_dump(is_dir("chroot_001_x")); var_dump(chroot("chroot_001_x")); var_dump(is_dir("chroot_001_x")); var_dump(realpath(".")); ?> --CLEAN-- <?php rmdir("chroot_001_x"); ?> --EXPECT-- bool(true) bool(true) bool(false) string(1) "/"
Copyright ©2k19 -
Hexid
|
Tex7ure