1--TEST--
2chroot()
3--SKIPIF--
4<?php
5chdir("/");
6if (!@mkdir("testtmpskipifdir")) {
7	die("skip for root only");
8}
9rmdir("testtmpskipifdir");
10if (!function_exists("chroot")) {
11	die("skip chroot() not available");
12}
13?>
14--FILE--
15<?php
16mkdir("chroot_001_x");
17var_dump(is_dir("chroot_001_x"));
18var_dump(chroot("chroot_001_x"));
19var_dump(is_dir("chroot_001_x"));
20var_dump(realpath("."));
21?>
22--CLEAN--
23<?php
24rmdir("chroot_001_x");
25?>
26--EXPECTF--
27bool(true)
28bool(true)
29bool(false)
30%unicode|string%(1) "/"
31