[wp-trac] [WordPress Trac] #41134: Move __autoload compat to pevent deprecation warnings

WordPress Trac noreply at wordpress.org
Fri Jun 23 18:50:11 UTC 2017


#41134: Move __autoload compat to pevent deprecation warnings
----------------------------+------------------------------
 Reporter:  ayeshrajans     |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------------------

Comment (by ayeshrajans):

 @voldemortensen the approach has changed from the original ticket
 contents. Basically we offload the old `__autoload()` functionality to a
 new file, and include only if necessary (PHP 5.2, no SPL). For all other
 cases, the compiler wouldn't see the `__autoload()` declaration,
 preventing the PHP notice.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41134#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list