LightOpenID
LightOpenID copied to clipboard
deprecated function in PHP 7.4 version
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
The same trouble.
Yep, Laravel Socialite Steam login not working with PHP 7.4
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
@iignatov help us please
This package is abandoned, the Socialite team needs to replace it.