mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
0c35e61f59
commit
42a37ff20f
1 changed files with 21 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue