Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP warning: __autoload() is deprecated #4

Open
cba85 opened this issue Jun 19, 2018 · 0 comments
Open

PHP warning: __autoload() is deprecated #4

cba85 opened this issue Jun 19, 2018 · 0 comments

Comments

@cba85
Copy link

cba85 commented Jun 19, 2018

Hello,

I obtained a PHP warning on PHP 7.2 when trying to install wordpress-12factor using composer wordpress-setup-core-install.

PHP Deprecated:  __autoload() is deprecated, use spl_autoload_register() instead in /wordpress/wp-includes/compat.php on line 502

I fixed it replacing:

function __autoload( $classname ) {
    ...
}

by

function spl_autoload_register( $classname ) {
    ...
}

Thank you for your useful project!

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

No branches or pull requests

1 participant