diff options
author | Marcus Boerger <helly@php.net> | 2008-02-23 17:06:22 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2008-02-23 17:06:22 +0000 |
commit | d3e50265643fc59c2b5c99ef4ac79e758a6d9839 (patch) | |
tree | d8e4f0da41e03fd9e59892e12836ed81130a65fe /ext/standard/basic_functions.c | |
parent | 6c5041979c9b0f9f05ac92427da53b60f6f6e7c3 (diff) | |
download | php-git-d3e50265643fc59c2b5c99ef4ac79e758a6d9839.tar.gz |
- MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
[DOC] Finally added deprecation messages
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r-- | ext/standard/basic_functions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 6475116e3b..72b2081913 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4934,6 +4934,9 @@ PHP_FUNCTION(set_magic_quotes_runtime) if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &new_setting) == FAILURE) { RETURN_FALSE; } + + php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "This function is deprecated and removed in PHP 6. See http://php.net/{migrate}#set_magic_quotes_runtime for details."); + convert_to_boolean_ex(new_setting); PG(magic_quotes_runtime) = (zend_bool) Z_LVAL_PP(new_setting); @@ -4945,6 +4948,7 @@ PHP_FUNCTION(set_magic_quotes_runtime) Get the current active configuration setting of magic_quotes_runtime */ PHP_FUNCTION(get_magic_quotes_runtime) { + php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "This function is deprecated and removed in PHP 6. See http://php.net/{migrate}#get_magic_quotes_runtime for details."); RETURN_LONG(PG(magic_quotes_runtime)); } /* }}} */ @@ -4953,6 +4957,7 @@ PHP_FUNCTION(get_magic_quotes_runtime) Get the current active configuration setting of magic_quotes_gpc */ PHP_FUNCTION(get_magic_quotes_gpc) { + php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "This function is deprecated and removed in PHP 6. See http://php.net/{migrate}#get_magic_quotes_gpc for details."); RETURN_LONG(PG(magic_quotes_gpc)); } /* }}} */ |