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

From: Date: Wed, 11 Nov 2009 00:37:42 +0000
Subject: Re: Re: alternative to the fopen() hack in autoloaders
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-46018@lists.php.net to get a copy of this message
Hi!
A good point. Fortunately, most streams do store the filename in the stream struct, so this would still probably be possible in the majority of cases. If not available, the original requested filename is used (the one from the fopen call), so opcode caches probably could just use that.
The problem is, by then the stream will already be opened, i.e. extra filesystem call is done. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#46018) next »