Ken Tossell wrote:
kennyt Wed Jan 28 15:09:16 2004 EDT

Modified files: /phpdoc/en/reference/exec/functions exec.xml Log:
Fix #27076: Add warning about safe_mode and argument quoting.

Are you sure it's only for exec() ? what about system() & co ? ;)


didou

http://cvs.php.net/diff.php/phpdoc/en/reference/exec/functions/exec.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/exec/functions/exec.xml
diff -u phpdoc/en/reference/exec/functions/exec.xml:1.7 phpdoc/en/reference/exec/functions/exec.xml:1.8
--- phpdoc/en/reference/exec/functions/exec.xml:1.7 Wed Dec 31 05:39:42 2003
+++ phpdoc/en/reference/exec/functions/exec.xml Wed Jan 28 15:09:15 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/exec.xml, last change in rev 1.2 -->
<refentry id="function.exec">
<refnamediv>
@@ -65,6 +65,14 @@
<literal>..</literal> components in the path to the executable.
</simpara>
</note>
+ <warning>
+ <simpara>
+ With <link linkend="features.safe-mode">safe mode</link> enabled,
+ all words following the initial command string are treated as a
+ single argument. Thus, <literal>echo y | echo x</literal> becomes
+ <literal>echo 'y | echo x'</literal>.
+ </simpara>
+ </warning>
<para>
See also <function>system</function>,
<function>passthru</function>, <function>popen</function>,

Reply via email to