Re: lstat call on each directory level

From: Date: Tue, 15 Jul 2008 22:20:30 +0000
Subject: Re: lstat call on each directory level
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-38994@lists.php.net to get a copy of this message
Lars Strojny wrote:
Hi Rasmus, Am Dienstag, den 15.07.2008, 11:40 -0700 schrieb Rasmus Lerdorf: [...]
That's a realpath() call and it should be getting cached by the realpath cache, so if you are seeing these on every request, try increasing your realpath_cache size in your .ini. Without checking the realpath, you would be able to circumvent open_basedir checking really easily with a symlink.
Couldn't we do that check only if open_basedir is active?
Like I said, it is used for other things too, like include_once filename resolution. Check the code. -Rasmus

« previous php.internals (#38994) next »