(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/
没有评论:
发表评论