Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: basic_functions.c
- ===================================================================
- RCS file: /repository/php-src/ext/standard/basic_functions.c,v
- retrieving revision 1.725.2.31.2.64.2.92
- diff -u -r1.725.2.31.2.64.2.92 basic_functions.c
- --- basic_functions.c 20 Jun 2009 06:07:35 -0000 1.725.2.31.2.64.2.92
- +++ basic_functions.c 23 Jun 2009 02:31:30 -0000
- @@ -2932,8 +2932,8 @@
- PHP_FE(set_time_limit, arginfo_set_time_limit)
- PHP_FE(get_cfg_var, arginfo_get_cfg_var)
- - PHP_DEP_FALIAS(magic_quotes_runtime, set_magic_quotes_runtime, arginfo_set_magic_quotes_runtime)
- - PHP_DEP_FE(set_magic_quotes_runtime, arginfo_set_magic_quotes_runtime)
- + PHP_FALIAS(magic_quotes_runtime, set_magic_quotes_runtime, arginfo_set_magic_quotes_runtime)
- + PHP_FE(set_magic_quotes_runtime, arginfo_set_magic_quotes_runtime)
- PHP_FE(get_magic_quotes_gpc, arginfo_get_magic_quotes_gpc)
- PHP_FE(get_magic_quotes_runtime, arginfo_get_magic_quotes_runtime)
- @@ -4584,7 +4584,7 @@
- }
- /* }}} */
- -/* {{{ proto bool set_magic_quotes_runtime(int new_setting)
- +/* {{{ proto bool set_magic_quotes_runtime(bool new_setting)
- Set the current active configuration setting of magic_quotes_runtime and return previous */
- PHP_FUNCTION(set_magic_quotes_runtime)
- {
- @@ -4594,6 +4594,10 @@
- return;
- }
- + if (new_setting) {
- + php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "magic_quotes_runtime is deprecated and will be removed in PHP6");
- + }
- +
- PG(magic_quotes_runtime) = new_setting;
- RETURN_TRUE;
- }
Add Comment
Please, Sign In to add comment