cvs: phpdoc /en/reference/info/functions get-magic-quotes-gpc.xml

From: Date: Thu, 14 Nov 2002 13:23:17 +0000
Subject: cvs: phpdoc /en/reference/info/functions get-magic-quotes-gpc.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969349649@lists.php.net to get a copy of this message
philip Thu Nov 14 08:23:17 2002 EDT Modified files: /phpdoc/en/reference/info/functions get-magic-quotes-gpc.xml Log: 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 Index: phpdoc/en/reference/info/functions/get-magic-quotes-gpc.xml diff -u phpdoc/en/reference/info/functions/get-magic-quotes-gpc.xml:1.2 phpdoc/en/reference/info/functions/get-magic-quotes-gpc.xml:1.3 --- phpdoc/en/reference/info/functions/get-magic-quotes-gpc.xml:1.2 Wed Apr 17 02:39:26 2002 +++ phpdoc/en/reference/info/functions/get-magic-quotes-gpc.xml Thu Nov 14 08:23:16 2002 @@ -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>

« previous php.doc (#969349649) next »