From 42a37ff20f9c04813ca3554f0de4933b7603bbfc Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 14 Nov 2002 13:23:16 +0000 Subject: [PATCH] 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 --- .../info/functions/get-magic-quotes-gpc.xml | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/reference/info/functions/get-magic-quotes-gpc.xml b/reference/info/functions/get-magic-quotes-gpc.xml index 92d3336c3a..a61b6d0a22 100644 --- a/reference/info/functions/get-magic-quotes-gpc.xml +++ b/reference/info/functions/get-magic-quotes-gpc.xml @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ Description - longget_magic_quotes_gpc + intget_magic_quotes_gpc @@ -19,9 +19,26 @@ linkend="ini.magic-quotes-gpc">magic_quotes_gpc (0 for off, 1 for on). + + + If the directive + magic_quotes_sybase is ON it will completely + override magic_quotes_gpc. So even + when get_magic_quotes 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: '' + + - See also get_magic_quotes_runtime and - set_magic_quotes_runtime. + Keep in mind that + magic_quotes_gpc can not be set at runtime. + + + See also addslashes, + stripslashes, + get_magic_quotes_runtime, and + ini_get.