Guest User

Untitled

a guest
Jun 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. Index: basic_functions.c
  2. ===================================================================
  3. RCS file: /repository/php-src/ext/standard/basic_functions.c,v
  4. retrieving revision 1.725.2.31.2.64.2.92
  5. diff -u -r1.725.2.31.2.64.2.92 basic_functions.c
  6. --- basic_functions.c 20 Jun 2009 06:07:35 -0000 1.725.2.31.2.64.2.92
  7. +++ basic_functions.c 23 Jun 2009 02:31:30 -0000
  8. @@ -2932,8 +2932,8 @@
  9. PHP_FE(set_time_limit, arginfo_set_time_limit)
  10. PHP_FE(get_cfg_var, arginfo_get_cfg_var)
  11.  
  12. - PHP_DEP_FALIAS(magic_quotes_runtime, set_magic_quotes_runtime, arginfo_set_magic_quotes_runtime)
  13. - PHP_DEP_FE(set_magic_quotes_runtime, arginfo_set_magic_quotes_runtime)
  14. + PHP_FALIAS(magic_quotes_runtime, set_magic_quotes_runtime, arginfo_set_magic_quotes_runtime)
  15. + PHP_FE(set_magic_quotes_runtime, arginfo_set_magic_quotes_runtime)
  16. PHP_FE(get_magic_quotes_gpc, arginfo_get_magic_quotes_gpc)
  17. PHP_FE(get_magic_quotes_runtime, arginfo_get_magic_quotes_runtime)
  18.  
  19. @@ -4584,7 +4584,7 @@
  20. }
  21. /* }}} */
  22.  
  23. -/* {{{ proto bool set_magic_quotes_runtime(int new_setting)
  24. +/* {{{ proto bool set_magic_quotes_runtime(bool new_setting)
  25. Set the current active configuration setting of magic_quotes_runtime and return previous */
  26. PHP_FUNCTION(set_magic_quotes_runtime)
  27. {
  28. @@ -4594,6 +4594,10 @@
  29. return;
  30. }
  31.  
  32. + if (new_setting) {
  33. + php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "magic_quotes_runtime is deprecated and will be removed in PHP6");
  34. + }
  35. +
  36. PG(magic_quotes_runtime) = new_setting;
  37. RETURN_TRUE;
  38. }
Add Comment
Please, Sign In to add comment