Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2008 16:44:23 +0100
From:      "Ivan Voras" <ivoras@gmail.com>
To:        "Peter Wemm" <peter@wemm.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, John Baldwin <jhb@freebsd.org>
Subject:   Re: svn commit: r184652 - in head/sys: dev/hwpmc fs/procfs kern
Message-ID:  <9bbcef730811060744p6bb85393h297ac247d98a0d5d@mail.gmail.com>
In-Reply-To: <e7db6d980811060721j41e8ab36s6c67251043dbba2b@mail.gmail.com>
References:  <200811041904.mA4J41dL005103@svn.freebsd.org> <9bbcef730811041422x5f1e7bfco45380390c64b3b1c@mail.gmail.com> <200811041750.08355.jhb@freebsd.org> <e7db6d980811060721j41e8ab36s6c67251043dbba2b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2008/11/6 Peter Wemm <peter@wemm.org>:
> On Tue, Nov 4, 2008 at 2:50 PM, John Baldwin <jhb@freebsd.org> 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 :) ).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9bbcef730811060744p6bb85393h297ac247d98a0d5d>