Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48929 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84350 invoked from network); 21 Jun 2010 18:37:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2010 18:37:33 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.212.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.212.170 mail-px0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:35440] helo=mail-px0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/03-62847-A61BF1C4 for ; Mon, 21 Jun 2010 14:37:32 -0400 Received: by pxi6 with SMTP id 6so1655619pxi.29 for ; Mon, 21 Jun 2010 11:37:28 -0700 (PDT) Received: by 10.142.150.41 with SMTP id x41mr3766213wfd.112.1277145448065; Mon, 21 Jun 2010 11:37:28 -0700 (PDT) Received: from Rasmus-Lerdorfs-MacBook-Pro.local (c-24-7-29-193.hsd1.ca.comcast.net [24.7.29.193]) by mx.google.com with ESMTPS id g14sm2749066rvb.1.2010.06.21.11.37.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 21 Jun 2010 11:37:27 -0700 (PDT) Message-ID: <4C1FB162.1090506@lerdorf.com> Date: Mon, 21 Jun 2010 11:37:22 -0700 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Vincenzo D'Amore CC: Internals References: <4C1E1986.7030802@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Performance problem with php From: rasmus@lerdorf.com (Rasmus Lerdorf) On 6/21/10 9:35 AM, Vincenzo D'Amore wrote: > 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? It is more likely a cache problem. Fix your realpath_cache settings like I suggested. -Rasmus