From 92e1c9f103b3b4b7b1b8520e817c32b873d2b222 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 31 Dec 2003 10:39:43 +0000 Subject: [PATCH] safe mode note git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147556 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/exec/functions/exec.xml | 11 ++++++++++- reference/exec/functions/passthru.xml | 11 ++++++++++- reference/exec/functions/system.xml | 11 ++++++++++- reference/filesystem/functions/chgrp.xml | 3 ++- reference/filesystem/functions/chmod.xml | 12 +++++++++--- reference/filesystem/functions/popen.xml | 11 ++++++++++- 6 files changed, 51 insertions(+), 8 deletions(-) diff --git a/reference/exec/functions/exec.xml b/reference/exec/functions/exec.xml index 4f4af224af..e72933f46e 100644 --- a/reference/exec/functions/exec.xml +++ b/reference/exec/functions/exec.xml @@ -1,5 +1,5 @@ - + @@ -56,6 +56,15 @@ hang until the execution of the program ends. + + + When safe mode is enabled, you + can only execute executables within the safe_mode_exec_dir. For + practical reasons it's currently not allowed to have + .. components in the path to the executable. + + See also system, passthru, popen, diff --git a/reference/exec/functions/passthru.xml b/reference/exec/functions/passthru.xml index 0cb3d54013..3c902e7b1e 100644 --- a/reference/exec/functions/passthru.xml +++ b/reference/exec/functions/passthru.xml @@ -1,5 +1,5 @@ - + @@ -47,6 +47,15 @@ hang until the execution of the program ends. + + + When safe mode is enabled, you + can only execute executables within the safe_mode_exec_dir. For + practical reasons it's currently not allowed to have + .. components in the path to the executable. + + See also exec, system, popen, escapeshellcmd, diff --git a/reference/exec/functions/system.xml b/reference/exec/functions/system.xml index c9d23fb000..646623fb31 100644 --- a/reference/exec/functions/system.xml +++ b/reference/exec/functions/system.xml @@ -1,5 +1,5 @@ - + @@ -75,6 +75,15 @@ echo ' + + + When safe mode is enabled, you + can only execute executables within the safe_mode_exec_dir. For + practical reasons it's currently not allowed to have + .. components in the path to the executable. + + See also exec, passthru, popen, diff --git a/reference/filesystem/functions/chgrp.xml b/reference/filesystem/functions/chgrp.xml index d685f19d3f..047912b9d8 100644 --- a/reference/filesystem/functions/chgrp.xml +++ b/reference/filesystem/functions/chgrp.xml @@ -1,5 +1,5 @@ - + @@ -22,6 +22,7 @@ &return.success; + ¬e.no-remote; ¬e.sm.uidcheck; See also chown and diff --git a/reference/filesystem/functions/chmod.xml b/reference/filesystem/functions/chmod.xml index 95e0884ded..3b81c4cb2e 100644 --- a/reference/filesystem/functions/chmod.xml +++ b/reference/filesystem/functions/chmod.xml @@ -1,5 +1,5 @@ - + @@ -79,9 +79,15 @@ chmod("/somedir/somefile", 0750); access. - ¬e.no-remote; - + + + When safe mode is enabled, PHP + checks whether the files or directories you are about to operate on have + the same UID (owner) as the script that is being executed. In addition, + you cannot set the SUID, SGID and sticky bits + + See also chown and chgrp. diff --git a/reference/filesystem/functions/popen.xml b/reference/filesystem/functions/popen.xml index e8610e44ba..4a67b3a13b 100644 --- a/reference/filesystem/functions/popen.xml +++ b/reference/filesystem/functions/popen.xml @@ -1,5 +1,5 @@ - + @@ -67,6 +67,15 @@ pclose($handle); + + + When safe mode is enabled, you + can only execute executables within the safe_mode_exec_dir. For + practical reasons it's currently not allowed to have + .. components in the path to the executable. + + See also pclose, fopen, and proc_open.