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; } /* }}} */