[wp-trac] [WordPress Trac] #36926: Autoloading: Introduce compatibility shim for spl_autoload_register

WordPress Trac noreply at wordpress.org
Tue May 24 07:23:04 UTC 2016


#36926: Autoloading: Introduce compatibility shim for spl_autoload_register
-----------------------------------+------------------
 Reporter:  rmccue                 |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  4.6
Component:  General                |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------

Comment (by rmccue):

 Replying to [comment:6 dd32]:
 > You already support that :) PHP doesn't throw an exception when it's
 calling the autoloaders (https://3v4l.org/Fj7I1), only when you first try
 to register it.

 Oh you're totally right, I misread the exception! However, the current
 patch will throw a warning from `call_user_func`, which doesn't match the
 PHP implementation.

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


More information about the wp-trac mailing list