rfc:autoload_include

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rfc:autoload_include [2009/11/22 17:06]
lsmith
rfc:autoload_include [2017/09/22 13:28] (current)
Line 1: Line 1:
 ====== Alternative to include/​require for autoloaders ====== ====== Alternative to include/​require for autoloaders ======
-  * Version: ​0.9+  * Version: ​1.0
   * Date: 2009-11-10   * Date: 2009-11-10
   * Author: Lukas Smith <​smith@pooteeweet.org>​   * Author: Lukas Smith <​smith@pooteeweet.org>​
-  * Status: ​Draft+  * Status: ​updated stream_resolve_include_path() was added in PHP 5.3.3
   * First Published at: http://​wiki.php.net/​rfc/​autoload_include   * First Published at: http://​wiki.php.net/​rfc/​autoload_include
  
 This RFC aims to offer an alternative solution to the well known fopen() "​hack"​ used in autoloaders in order to verify the existence of files inside the include path. This RFC aims to offer an alternative solution to the well known fopen() "​hack"​ used in autoloaders in order to verify the existence of files inside the include path.
 +
 ===== Introduction ===== ===== Introduction =====
  
Line 62: Line 63:
 "​stream_resolve_include_path() as currently constructed could not be intercepted,​ and is actually unable to process an include_path that contains streams. ​ I'm guessing it was written long before PHP 5.3. This could be easily fixed by having stream_resolve_include_path call zend_resolve_path() instead of doing its own internal calculations. With these changes, an opcode cache could easily cache the results."​ "​stream_resolve_include_path() as currently constructed could not be intercepted,​ and is actually unable to process an include_path that contains streams. ​ I'm guessing it was written long before PHP 5.3. This could be easily fixed by having stream_resolve_include_path call zend_resolve_path() instead of doing its own internal calculations. With these changes, an opcode cache could easily cache the results."​
  
-===== Changelog ​=====+===== Patches ​===== 
 + 
 +  * [[http://​valokuva.org/​patches/​php/​new/​stream_resolve_include_path.txt}|patch to add an improved stream_resolve_include_path() to 5.3]]
rfc/autoload_include.1258909561.txt.gz · Last modified: 2017/09/22 13:28 (external edit)