magic_quotes_gpc: A note about the awesome power of magic_quotes_sybase.

This partly closes bug #20384.
See also: get_magic_quotes_gpc()


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@103848 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2002-11-14 12:50:59 +00:00
parent 07b530aa58
commit b4e4afde06

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<section id="info.configuration">
&reftitle.runtime;
&extension.runtime;
@ -189,9 +189,20 @@
Sets the magic_quotes state for GPC (Get/Post/Cookie)
operations. When magic_quotes are on, all ' (single-quote),
&quot; (double quote), \ (backslash) and NUL's are escaped
with a backslash automatically. If magic_quotes_sybase is
also on, a single-quote is escaped with a single-quote
instead of a backslash.
with a backslash automatically.
</para>
<note>
<para>
If the <link linkend="ini.magic-quotes-sybase">
magic_quotes_sybase</link> directive is also ON it will
completely override magic_quotes_gpc. Having both directives
enabled means only single quotes are escaped as
<emphasis>''</emphasis>. Double quotes, backslashes and
NUL's will remain untouched and unescaped.
</para>
</note>
<para>
See also <function>get_magic_quotes_gpc</function>
</para>
</listitem>
</varlistentry>