phpCAS
phpCAS copied to clipboard
GracefullTerminationException : warning with PHP 8.0
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.
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....
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.
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".