jakobwesthoff/phuml

__autoload() is no longer supported since php 8.0.0

Opened this issue · 0 comments

Phuml can't be used in PHP 8.0.0 or upper.

Error thrown by php:

PHP Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\phuml\src\config\config.php on line 14

In this case we can't just change __autoload() for spl_autoload_register(), it cause redeclaration error:

Fatal error: Cannot redeclare spl_autoload_register() in C:\phuml\src\config\config.php on line 14

Renaming the function __autoload() to loadClasses() or something else will allow to start the software, but still throwing this error with -h arg

PHP Fatal error:  Uncaught Error: Class "plPhuml" not found in C:\phuml\src\app\phuml:192
Stack trace:
#0 {main}
  thrown in C:\phuml\src\app\phuml on line 192

And then I stop getting deeper into the problems. Good Luck.