Skip to content

fix set_magic_quotes_runtime inconsistency with documentation #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ext/standard/basic_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
/* }}} */
Expand Down