#46630 closed enhancement (duplicate)
Remove SPL-Autoload polyfill
| Reported by: | ayeshrajans | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Bootstrap/Load | Version: | 4.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | performance |
Description
Follow up to #46594 and #40109
PHP 7.2 deprecated the __autoload function to autoload PHP classes in favor of spl_autoload_register. For PHP versions <= 5.2, one can have PHP versions without SPL, which added the spl_autoload_register.
To make sure tests pass, I split the WordPress's __autoload implementation to a separate file spl-autoload-compat.php.
Now that we require PHP 5.6.30 in trunk, we can safely remove this polyfill!
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Travis: https://travis-ci.org/Ayesh/wordpress-develop/builds/510720605