From 67597bfefd50f71f136543f9b113ac2f998fd238 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Mon, 14 Oct 2013 11:14:26 +0100 Subject: [PATCH] fix set_magic_quotes_runtime inconsistency with documentation --- ext/standard/basic_functions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 7db20d1a62e85..25f74fc4945f1 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4631,8 +4631,9 @@ PHP_FUNCTION(set_magic_quotes_runtime) } if (new_setting) { - php_error_docref(NULL TSRMLS_CC, E_CORE_ERROR, "magic_quotes_runtime is not supported anymore"); - } + php_error_docref(NULL TSRMLS_CC, E_CORE_ERROR, "magic quotes are not supported anymore"); + } else php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "magic quotes are not supported anymore"); + RETURN_FALSE; } /* }}} */