rfc:core-autoloading

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rfc:core-autoloading [2023/04/03 14:47] – Tried to make pinning easier to understand. danackrfc:core-autoloading [2023/04/10 12:14] – Status: Under Discussion girgias
Line 4: Line 4:
   * Date: 2023-04-03   * Date: 2023-04-03
   * Author: George Peter Banyard, <girgias@php.net>, Dan Ackroyd, <danack@basereality.com>    * Author: George Peter Banyard, <girgias@php.net>, Dan Ackroyd, <danack@basereality.com> 
-  * Status: Draft+  * Status: Under Discussion
   * Target Version: PHP 8.3   * Target Version: PHP 8.3
   * Implementation: [[https://github.com/php/php-src/pull/8294]]   * Implementation: [[https://github.com/php/php-src/pull/8294]]
Line 16: Line 16:
 The need for such a feature seems very clear as users will create "helper" classes with static methods to take advantage of autoloading via the class autoloading mechanism. The need for such a feature seems very clear as users will create "helper" classes with static methods to take advantage of autoloading via the class autoloading mechanism.
  
-A previous [[draft RFC for function autoloading|https://wiki.php.net/rfc/function_autoloading]] did not proceed to a vote, due to concerns on a performance hit related to global functions.+A previous [[https://wiki.php.net/rfc/function_autoloading|draft RFC for function autoloading]] did not proceed to a vote, due to concerns on a performance hit related to global functions.
 This RFC has avoided that performance problem. This RFC has avoided that performance problem.
  
Line 283: Line 283:
 ==== Higher performance through maps ==== ==== Higher performance through maps ====
  
-There is an ongoing conversation, and a [[previous RFC|https://wiki.php.net/rfc/autoload_classmap]] about adding functions to have a native classmap/functionmap/typemap resolver written in C. That is outside the scope of this RFC.+There is an ongoing conversation, and a [[https://wiki.php.net/rfc/autoload_classmap|previous RFC]] about adding functions to have a native classmap/functionmap/typemap resolver written in C. That is outside the scope of this RFC. 
 + 
 +However, a basic implementation of that RFC has been created and can be tried with the implementation of this RFC: https://gitlab.com/Girgias/php-autoloading-maps-extension
  
 ====== Deprecating the SPL autoloader functions ====== ====== Deprecating the SPL autoloader functions ======
rfc/core-autoloading.txt · Last modified: 2023/04/23 14:24 by danack