[wp-trac] [WordPress Trac] #46630: Remove SPL-Autoload polyfill
WordPress Trac
noreply at wordpress.org
Sun Mar 24 22:34:31 UTC 2019
#46630: Remove SPL-Autoload polyfill
----------------------------+-----------------------------
Reporter: ayeshrajans | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: trunk
Severity: normal | Keywords:
Focuses: performance |
----------------------------+-----------------------------
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!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46630>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list