Skip to content

Commit b2ea507

Browse files
committed
Deprecate get_magic_quotes_gpc() and get_magic_quotes_runtime()
1 parent b2915fc commit b2ea507

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ext/standard/basic_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,8 +3011,8 @@ static const zend_function_entry basic_functions[] = { /* {{{ */
30113011
PHP_FE(header_register_callback, arginfo_header_register_callback)
30123012
PHP_FE(get_cfg_var, arginfo_get_cfg_var)
30133013

3014-
PHP_FE(get_magic_quotes_gpc, arginfo_get_magic_quotes_gpc)
3015-
PHP_FE(get_magic_quotes_runtime, arginfo_get_magic_quotes_runtime)
3014+
PHP_DEP_FE(get_magic_quotes_gpc, arginfo_get_magic_quotes_gpc)
3015+
PHP_DEP_FE(get_magic_quotes_runtime, arginfo_get_magic_quotes_runtime)
30163016

30173017
PHP_FE(error_log, arginfo_error_log)
30183018
PHP_FE(error_get_last, arginfo_error_get_last)

ext/standard/tests/general_functions/bug55371.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ get_magic_quotes_runtime();
99
echo 'done';
1010

1111
?>
12-
--EXPECT--
12+
--EXPECTF--
13+
Deprecated: Function get_magic_quotes_gpc() is deprecated in %s on line %d
14+
15+
Deprecated: Function get_magic_quotes_runtime() is deprecated in %s on line %d
1316
done

0 commit comments

Comments
 (0)