Thanks Rasmus,

we are using wordpress. Looking at code:

find . -type f -exec grep realpath {} \;

I see a lot of:

if ( function_exists('realpath') )
 $path = realpath($path);
if ( function_exists('realpath') )
$path = realpath($path);
 if ( function_exists('realpath') )
$path = realpath($path);
if ( realpath($path) == $path )
 if ( !is_null($dest_path) and $_dest_path = realpath($dest_path) )

What do you think if I disable such function?

Best regards,
Vincenzo

On Sun, Jun 20, 2010 at 3:37 PM, Rasmus Lerdorf <ras...@lerdorf.com> wrote:

> On 6/19/10 11:49 PM, Vincenzo D'Amore wrote:
> > Could anybody explain me why I have this behavior and if it is
> attributable
> > to a misconfiguration of php?
>
> This doesn't look like a PHP misconfiguration.  It looks more like an
> application-level issue.  Do a grep for "realpath" in your application
> code.  A single call to realpath() would cause that tree of stat calls
> you see.  Also, you might be overflowing your realpath cache.  PHP 5.2
> is not using the cache very efficiently.  This is fixed in 5.3.  But try
> increasing your cache ttl and the size as well.  eg.
>
> realpath_cache_size = 256k
> realpath_cache_ttl  = 7200
>
> -Rasmus
>



-- 
Vincenzo D'Amore
email: v.dam...@gmail.com
msn: free...@hotmail.com
skype: free.dev
mobile: +39 349 8513251

Reply via email to