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

WordPress Trac noreply at wordpress.org
Tue May 24 06:53:51 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 dd32):

 Replying to [comment:5 rmccue]:
 > As it turns out, [https://3v4l.org/iddHr PHP throws an exception] if the
 callback can't be found, so we should match that.

 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.

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


More information about the wp-trac mailing list