2008年11月4日星期二

Re: [fw-core] Zend_Loader::isReadable fix

I think checking for the right version will take alot less than writing a
log.


Matthew Weier O'Phinney-3 wrote:
>
> -- chielsen <michiel@thalent.nl> wrote
> (on Tuesday, 04 November 2008, 11:34 AM -0800):
>> Matthew Weier O'Phinney-3 wrote:
>> > Second, using file_exists + fopen() means multiple stat calls to the
>> > filesystem, which degrades performance. We can't use file_exists() by
>> > itself, as it is not include_path aware; fopen() *is*, however.
>> > Considering the number of reports about performance, adding additional
>> > stat calls is a no-go.
>>
>> Thanks for the explanation.
>> Has a change to the php is_readable() already been recommended?
>
> I believe so, but we wouldn't be able to use it until the version in
> which it is introduced is at or below our minimum supported version --
> which could be months or years down the road, if indeed it's ever added.
>
> --
> Matthew Weier O'Phinney
> Software Architect | matthew@zend.com
> Zend Framework | http://framework.zend.com/
>
>

--
View this message in context: http://www.nabble.com/Zend_Loader%3A%3AisReadable-fix-tp20326421p20330593.html
Sent from the Zend Core mailing list archive at Nabble.com.

没有评论: