#46630 closed enhancement (duplicate)
Remove SPL-Autoload polyfill
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.2 |
| Component: | Bootstrap/Load | Keywords: | has-patch |
| Focuses: | performance | Cc: |
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.
Travis: https://travis-ci.org/Ayesh/wordpress-develop/builds/510720605