felixrupp / user_cas

This app provides CAS authentication support for ownCloud and Nextcloud, using the phpCAS library of jasig/apereo.
Other
21 stars 24 forks source link

setcookie incompatibility on php 8.1 #103

Open le-zell opened 2 years ago

le-zell commented 2 years ago

Log error :

Error: setcookie(): Passing null to        2022-10-06T21:07:21+02:00
                              parameter #3 ($expires_or_options) of type
                              array|int is deprecated at
                              /xxxxxxxxxxxxxxx/public_html/apps/user_cas/appinfo/app.php#59

Error from line setcookie("user_cas_enforce_authentication", "0", null, '/');

null seems not a valid option :

i put a day as e expires value : setcookie("user_cas_enforce_authentication", "0", time()+60*60*24, '/');

landryb commented 1 year ago

should be fixed by #108