vikas5914/steam-auth

get_magic_quotes_gpc has been deprecated as of PHP 7.4.0, and removed as of PHP 8.0.0

AndrewGalaz23 opened this issue · 1 comments

I encountered a problem caused by the absence of the get_magic_quotes_gpc function in PHP 8.

From PHP.net on the function spec page:

This function has been DEPRECATED as of PHP 7.4.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouraged.

Seems that the function can be removed from the code without particolar problems: PHP 7.4 deprecated get_magic_quotes_gpc function alternative (Stack Overflow).

For others using the lastest release (v1.0.2) with PHP 8+, a workaround can be adding this code:

//Fix "get_magic_quotes_gpc" in PHP 8+.
if(!function_exists('get_magic_quotes_gpc')) {
  function get_magic_quotes_gpc() { return false; }
}

Fixed via 9c7b0da