phpCAS icon indicating copy to clipboard operation
phpCAS copied to clipboard

GracefullTerminationException : warning with PHP 8.0

Open Equipement opened this issue 1 year ago • 3 comments

Hello, \CAS\GracefullTerminationException.php line 24 WARNING : When exit() is called within an object constructor, the object destructor will no longer be called since PHP 8.0. While no __destruct() method was found in this class, one may be declared in the parent class or in a trait being used.

Equipement avatar Feb 21 '24 09:02 Equipement

Can you please tell us a bit more about the context? Which phpcas version and how are you using it? Have you checked the debug log?

With this error alone it's hard to figure out what the issue is....

jfritschi avatar Feb 22 '24 07:02 jfritschi

Context: I used a tool to check compatibility with PHP 8.0.

The tool report shows :

\CAS\GracefullTerminationException.php line 24 WARNING : When exit() is called within an object constructor, the object destructor will no longer be called since PHP 8.0. While no __destruct() method was found in this class, one may be declared in the parent class or in a trait being used.

Equipement avatar Feb 22 '24 13:02 Equipement

I don't see any bug here. They changed behavior in PHP8 but I don't see how this impacts us or even what we could "fix".

jfritschi avatar Feb 24 '24 10:02 jfritschi