iignatov / LightOpenID

Lightweight PHP5 library for easy OpenID authentication.
MIT License
79 stars 96 forks source link

deprecated function in PHP 7.4 version #20

Open Ferikl opened 4 years ago

Ferikl commented 4 years ago

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

this53 commented 4 years ago

The same trouble.

volkv commented 4 years ago

Yep, Laravel Socialite Steam login not working with PHP 7.4

david-nagel commented 4 years ago

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

volkv commented 4 years ago

@iignatov help us please

benjivm commented 4 years ago

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