LightOpenID icon indicating copy to clipboard operation
LightOpenID copied to clipboard

deprecated function in PHP 7.4 version

Open Ferikl opened this issue 5 years ago • 5 comments

Hi, I am trying to use this lib to work with Steam and have error:

ERROR: Function get_magic_quotes_gpc() is deprecated {"exception":"[object] (ErrorException(code: 0): Function get_magic_quotes_gpc() is deprecated at /var/www/app/vendor/iignatov/lightopenid/openid.php:891)
[stacktrace]
#0 /var/www/app/vendor/iignatov/lightopenid/openid.php(891): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8192, 'Function get_ma...', '/var/www/app/ve...', 891, Array)
#1 /var/www/app/vendor/socialiteproviders/steam/Provider.php(58): LightOpenID->validate()

I am using PHP 7.4.2

Ferikl avatar Feb 12 '20 14:02 Ferikl

The same trouble.

this53 avatar Feb 12 '20 21:02 this53

Yep, Laravel Socialite Steam login not working with PHP 7.4

volkv avatar Feb 14 '20 10:02 volkv

get_magic_quotes_gpc returns always false since PHP 5.4: https://www.php.net/manual/en/function.get-magic-quotes-gpc.php

If you're using a more recent version it should be safe to replace function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() ? stripslashes($value) : $value; with $value

david-nagel avatar Feb 15 '20 15:02 david-nagel

@iignatov help us please

volkv avatar Feb 15 '20 16:02 volkv

This package is abandoned, the Socialite team needs to replace it.

benjivm avatar Feb 21 '20 17:02 benjivm