Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39712 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63884 invoked from network); 6 Aug 2008 19:02:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2008 19:02:45 -0000 Authentication-Results: pb1.pair.com header.from=arnaud.lb@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=arnaud.lb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.231 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arnaud.lb@gmail.com X-Host-Fingerprint: 209.85.198.231 rv-out-0506.google.com Received: from [209.85.198.231] ([209.85.198.231:50872] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/96-29324-355F9984 for ; Wed, 06 Aug 2008 15:02:44 -0400 Received: by rv-out-0506.google.com with SMTP id g37so56988rvb.23 for ; Wed, 06 Aug 2008 12:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=SeZN216rI46ffDl99QXsS9WBmH3NCtLmu8MA4lEwlmI=; b=nciSJlW7m8Wvb+y9DU77xB43kNAMA/5359eJ4cTfiamTAdjS6ZNCDmzMYxq48iV4gQ wdR7Idl5dc5D33Iv7ETlqyCoCxhLRRqiAdiLFdPIs7khsiBOcOQj3ArY0eXYEiJIZ4Ha MBV+6AvLElEwZR364oCDgH8Vq9LSl2r3+YzRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=BwcgwJFwg0gkJ864WUClIsHS0nb9D7HSM2So0EfNVseIn39AgFsn9RXylRShyMxInw /uzVmAHQ/QyeGC39Wi7lpREjs8C8TRy3Ow5/dVfJnVMiuV0lK4/I9NIAsXJdTz16iTmj Rlt9aYoZUcwTALd0xcyaOHxE1SK3p3EtKkhE0= Received: by 10.141.171.1 with SMTP id y1mr218533rvo.252.1218049361281; Wed, 06 Aug 2008 12:02:41 -0700 (PDT) Received: from 207-177-41-213.getmyip.com ( [213.41.177.207]) by mx.google.com with ESMTPS id k2sm12021849rvb.4.2008.08.06.12.02.39 (version=SSLv3 cipher=RC4-MD5); Wed, 06 Aug 2008 12:02:40 -0700 (PDT) To: internals@lists.php.net Date: Wed, 6 Aug 2008 21:00:59 +0200 User-Agent: KMail/1.10.0 (Linux/2.6.26-noch; KDE/4.1.0; i686; ; ) Cc: jani.taskinen@iki.fi, Rasmus Lerdorf References: <48997CC5.60709@lerdorf.com> <4899CEE9.5050904@sci.fi> <200808061956.58909.arnaud.lb@gmail.com> In-Reply-To: <200808061956.58909.arnaud.lb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200808062101.00394.arnaud.lb@gmail.com> Subject: Re: [PHP-DEV] clearstatcache change From: arnaud.lb@gmail.com (Arnaud Le Blanc) On Wednesday 06 August 2008 19:56:58 Arnaud Le Blanc wrote: > Hi, > > On Wednesday 06 August 2008 18:18:49 Jani Taskinen wrote: > > Rasmus Lerdorf wrote: > > > I think we either need to make clearstatcache() not affect the realpath > > > cache, or we should add an optional argument to it to specify whether > > > or not the realpath cache should be cleared as well. > > > > See this: http://bugs.php.net/39367 > > > > Considering some people seem to want to clear realpath cache as well, I'd > > make it an optional parameter which defaults to NOT clear realpath cache: > > > > clearstatchache(true); /* BOOM! realpath cache gone.. */ > > > > btw. I just noticed chroot() calls this > > realpath_cache_clean()..intentional? Also some streams stuff uses the > > php_clear_stat_cache() func but those should propably use the > > realpatch_cache_del() instead and not blow away whole cache? > > Yes, I think too. > I added that to your patch: > http://arnaud.lb.s3.amazonaws.com/clearstatcache_optional_params.patch :) > > It also adds the "filename" argument to > clearstatcache([bool clear_realpath_cache[, filename]]) I reply to myself, actually this may cause troubles to not clear the full cache in plain_wrapper.c :/ I updated the patch, just left the filename argument to clearstatcache(). > > > Here is a patch to add that optional parameter (for PHP_5_3): > > > > http://pecl.php.net/~jani/patches/clearstatcache_optional_param.patch > > > > --Jani