diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-11 13:32:10 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-22 11:39:52 +0200 |
| commit | b2ea507beab862a0167af6b99f44fe9c695ca4f0 (patch) | |
| tree | f75a6e971be1cbc2b26ff477780745690171cb6a | |
| parent | b2915fc33293592bcb2fea6c0844535e732049a9 (diff) | |
| download | php-git-b2ea507beab862a0167af6b99f44fe9c695ca4f0.tar.gz | |
Deprecate get_magic_quotes_gpc() and get_magic_quotes_runtime()
| -rw-r--r-- | ext/standard/basic_functions.c | 4 | ||||
| -rw-r--r-- | ext/standard/tests/general_functions/bug55371.phpt | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index cfe59fb8ec..6410bfaacc 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -3011,8 +3011,8 @@ static const zend_function_entry basic_functions[] = { /* {{{ */ PHP_FE(header_register_callback, arginfo_header_register_callback) PHP_FE(get_cfg_var, arginfo_get_cfg_var) - PHP_FE(get_magic_quotes_gpc, arginfo_get_magic_quotes_gpc) - PHP_FE(get_magic_quotes_runtime, arginfo_get_magic_quotes_runtime) + PHP_DEP_FE(get_magic_quotes_gpc, arginfo_get_magic_quotes_gpc) + PHP_DEP_FE(get_magic_quotes_runtime, arginfo_get_magic_quotes_runtime) PHP_FE(error_log, arginfo_error_log) PHP_FE(error_get_last, arginfo_error_get_last) diff --git a/ext/standard/tests/general_functions/bug55371.phpt b/ext/standard/tests/general_functions/bug55371.phpt index e28a6e5009..5b324db599 100644 --- a/ext/standard/tests/general_functions/bug55371.phpt +++ b/ext/standard/tests/general_functions/bug55371.phpt @@ -9,5 +9,8 @@ get_magic_quotes_runtime(); echo 'done'; ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Function get_magic_quotes_gpc() is deprecated in %s on line %d + +Deprecated: Function get_magic_quotes_runtime() is deprecated in %s on line %d done |
