From 82b58eb34a1ba6cac7f25278f7935a91e97edc3a Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Sat, 6 Nov 2010 03:03:16 +0000 Subject: [PATCH] Clarified chroot's behaviour, as well as when it is available on a system. Added an example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305124 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/dir/functions/chroot.xml | 31 ++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/reference/dir/functions/chroot.xml b/reference/dir/functions/chroot.xml index 207bc8d6a9..019c0f0969 100644 --- a/reference/dir/functions/chroot.xml +++ b/reference/dir/functions/chroot.xml @@ -15,11 +15,12 @@ Changes the root directory of the current process to - directory. + directory, and changes the current + working directory to "/". - This function is only available if your system supports it and - you're using the CLI, CGI or Embed SAPI. Also, this function + This function is only available to GNU and BSD systems, and + only when using the CLI, CGI or Embed SAPI. Also, this function requires root privileges. @@ -32,7 +33,7 @@ directory - The new directory + The path to change the root directory to. @@ -47,6 +48,28 @@ + + &reftitle.examples; + + + + +]]> + + &example.outputs; + + + + + + + &reftitle.notes; ¬e.no-windows;