8000 __autoload() is no longer supported since php 8.0.0 · Issue #11 · jakobwesthoff/phuml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

__autoload() is no longer supported since php 8.0.0 #11

Open
Havachi opened this issue May 28, 2021 · 0 comments
Open

__autoload() is no longer supported since php 8.0.0 #11

Havachi opened this issue May 28, 2021 · 0 comments

Comments

@Havachi
Copy link
Havachi commented May 28, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0