Skip to content

PHP 7.4RC: Function get_magic_quotes_gpc() is deprecated #786

Description

@q2apro

Just wanted to report that PHP 7.4RC throws the following errors:

Function get_magic_quotes_gpc() is deprecated in /qa-include/qa-base.php on line 1211
Function get_magic_quotes_gpc() is deprecated in /qa-include/qa-base.php on line 1224

function qa_gpc_to_string($string)
{
	if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }

	return get_magic_quotes_gpc() ? stripslashes($string) : $string;
}

function qa_string_to_gpc($string)
{
	if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }

	return get_magic_quotes_gpc() ? addslashes($string) : $string;
}

More info:

Magic quotes functions ¶
The get_magic_quotes_gpc() and get_magic_quotes_runtime() functions are deprecated. They always return FALSE.

https://www.php.net/manual/en/migration74.deprecated.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions