Note that magic_quotes_sybase overrides _gpc. Also mention that _gpc cannot

be set at runtime.  See also: addslashes(), stripslashes() and ini_get() and
remove set_magic_quotes_runtime() (this is confusing here).  Also changed
the return value from long to int.  Partly closes #20384


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@103850 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2002-11-14 13:23:16 +00:00
parent 0c35e61f59
commit 42a37ff20f

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/info.xml, last change in rev 1.2 -->
<refentry id="function.get-magic-quotes-gpc">
<refnamediv>
@ -11,7 +11,7 @@
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>long</type><methodname>get_magic_quotes_gpc</methodname>
<type>int</type><methodname>get_magic_quotes_gpc</methodname>
<void/>
</methodsynopsis>
<simpara>
@ -19,9 +19,26 @@
linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> (0 for
off, 1 for on).
</simpara>
<note>
<para>
If the directive <link linkend="ini.magic-quotes-sybase">
magic_quotes_sybase</link> is ON it will completely
override <parameter>magic_quotes_gpc</parameter>. So even
when <function>get_magic_quotes</function> returns
&true; neither double quotes, backslashes or NUL's will
be escaped. Only single quotes will be escaped. In this
case they'll look like: <emphasis>''</emphasis>
</para>
</note>
<simpara>
See also <function>get_magic_quotes_runtime</function> and
<function>set_magic_quotes_runtime</function>.
Keep in mind that <link linkend="ini.magic-quotes-gpc">
magic_quotes_gpc</link> can not be set at runtime.
</simpara>
<simpara>
See also <function>addslashes</function>, <function>
stripslashes</function>, <function>
get_magic_quotes_runtime</function>, and
<function>ini_get</function>.
</simpara>
</refsect1>
</refentry>