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.
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

Description

@Havachi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0