Re: Re: alternative to the fopen() hack in autoloaders

From: Date: Wed, 11 Nov 2009 01:20:29 +0000
Subject: Re: Re: alternative to the fopen() hack in autoloaders
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-46020@lists.php.net to get a copy of this message
Hi!
Yes, but let's not forget we're talking about making this:
While with proper caching, it can be 0 filesystem accesses.
if (can_include($file)) {
    include $file;
}
That's exactly what I was proposing - to have function to find file in include path and probably return the resulting filename (in case framework wants to keep it, or cache, or use it as a key or whatever). -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#46020) next »