]> granicus.if.org Git - php/commitdiff
- [DOC] restore get_magic_quotes_gpc and get_magic_quotes_runtime
authorPierre Joye <pajoye@php.net>
Sat, 24 May 2008 14:36:16 +0000 (14:36 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 24 May 2008 14:36:16 +0000 (14:36 +0000)
  they always return false.
  (let save the world, spare bandwidth and kill the trolls 1/2)

ext/standard/basic_functions.c
ext/standard/basic_functions.h

index 358e8e821e44f34220a9e63ac97a81cf51a199ad..d78ccce60bcc1b87e86e66c4cb0764af604d601f 100644 (file)
@@ -768,6 +768,14 @@ ZEND_BEGIN_ARG_INFO(arginfo_get_cfg_var, 0)
        ZEND_ARG_INFO(0, option_name)
 ZEND_END_ARG_INFO()
 
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_get_magic_quotes_gpc, 0, 0, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_get_magic_quotes_runtime, 0, 0, 0)
+ZEND_END_ARG_INFO()
+
 static
 ZEND_BEGIN_ARG_INFO_EX(arginfo_error_log, 0, 0, 1)
        ZEND_ARG_INFO(0, message)
@@ -3384,6 +3392,9 @@ const zend_function_entry basic_functions[] = { /* {{{ */
        PHP_FE(set_time_limit,                                                                                                  arginfo_set_time_limit)
        PHP_FE(get_cfg_var,                                                                                                             arginfo_get_cfg_var)
 
+       PHP_FE(get_magic_quotes_gpc,                                                                                    NULL)
+       PHP_FE(get_magic_quotes_runtime,                                                                                NULL)
+
        PHP_FE(import_request_variables,                                                                                arginfo_import_request_variables)
        PHP_FE(error_log,                                                                                                               arginfo_error_log)
        PHP_FE(error_get_last,                                                                                                  arginfo_error_get_last)
@@ -4884,6 +4895,22 @@ PHP_FUNCTION(get_cfg_var)
 }
 /* }}} */
 
+/* {{{ proto mixed get_magic_quotes_runtime(void) U
+   Get the value of a PHP configuration option */
+PHP_FUNCTION(get_magic_quotes_runtime)
+{
+       RETURN_FALSE;
+}
+/* }}} */
+
+/* {{{ proto mixed get_magic_quotes_gpc(void) U
+   Get the value of a PHP configuration option */
+PHP_FUNCTION(get_magic_quotes_gpc)
+{
+       RETURN_FALSE;
+}
+/* }}} */
+
 /*
        1st arg = error message
        2nd arg = error option
index 24501f66621c8b558935e456c68d4386fe783bf6..2547484ba76e9b3ed5bcac385d28b2b31472ccae 100644 (file)
@@ -71,7 +71,6 @@ PHP_FUNCTION(get_current_user);
 PHP_FUNCTION(set_time_limit);
 
 PHP_FUNCTION(get_cfg_var);
-PHP_FUNCTION(set_magic_quotes_runtime);
 PHP_FUNCTION(get_magic_quotes_runtime);
 PHP_FUNCTION(get_magic_quotes_gpc);