Skip to content

Instantly share code, notes, and snippets.

@KalleZ
Created June 26, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KalleZ/c38cc6ff421d1e565dcbd13166db8693 to your computer and use it in GitHub Desktop.
Save KalleZ/c38cc6ff421d1e565dcbd13166db8693 to your computer and use it in GitHub Desktop.
diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c
index a84c44d4cf..5e4f24623f 100644
--- a/ext/filter/sanitizing_filters.c
+++ b/ext/filter/sanitizing_filters.c
@@ -373,6 +373,8 @@ void php_filter_magic_quotes(PHP_INPUT_FILTER_PARAM_DECL)
{
zend_string *buf;
+ php_error_docref(NULL, E_DEPRECATED, "The 'magic_quotes' filter is deprecated and will be removed in a future version of PHP");
+
/* just call php_addslashes quotes */
buf = php_addslashes(Z_STR_P(value), 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment