2008/11/6 Peter Wemm <[EMAIL PROTECTED]>:
> On Tue, Nov 4, 2008 at 2:50 PM, John Baldwin <[EMAIL PROTECTED]> wrote:

> Hmm.  Would it make sense to provide a helper syscall specifically for
> php to use for this?  Without having looked at the php code, it sounds
> like it might be helpful to have a syscall that returns the path and
> an array of stat structs for each path component.  Or is php only
> doing this because of compatability with non-atomic getcwd()
> implementations?  Does php even need to do it?

Here's a discussion on the performance problem:

http://lists.freebsd.org/pipermail/freebsd-performance/2008-January/003096.html

I remember, but can't find the reference now, that the problem became
visible because PHP introduced realpath() checking for include files
in a minor release (like 5.1.6 or something like that) to work around
a security problem. This is when users saw noticeable drops in
performance (and I don't think it solved their security problem :) ).
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to