apereo / phpCAS

Apereo PHP CAS Client

Home Page:https://apereo.github.io/phpCAS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHPCas on PHP 8 and PHP7.4 refused to work

Acksop opened this issue · comments

I get a message of Deprecated function:

__autoload() is no longer supported, use spl_autoload_register() instead in /vendor/apereo/phpcas/source/CAS/Autoload on line 99

Can you improve PHP 8.0 Support ?

Which version of phpCAS are you using?

commented

Looks like line 99 is here (3 years ago): 381dfdb#diff-1695d12e397d8faa6c0dff03e7f598ab9af81df4e1442ca406982913a38a1a53L99

Please update to the latest phpCAS version. If you have other questions feel free to reply.

sorry for my silence... but I've hard to work until today ...
This is my answer :
"
nop phy25, php8.0 review this error, in fact __autoload method is deprecated !
"

commented

Ok. Could you confirm if you are using the latest phpCAS version?

I use on composer:
"apereo/phpcas": "^1.3",

But it seems that at startup, only at startup of the application that there is an error about the __autoload on php8.0,
and after it work.

The error is like above :

__autoload() is no longer supported, use spl_autoload_register() instead in /vendor/apereo/phpcas/source/CAS/Autoload on line 99

commented

Weird, that line has been removed since 1.3.6: 381dfdb

You might want to do a composer update or check if some other dependency locks you on an old phpCAS version.