Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39708 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49938 invoked from network); 6 Aug 2008 17:59:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2008 17:59:01 -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.228 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.228 rv-out-0506.google.com Received: from [209.85.198.228] ([209.85.198.228:42039] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/A3-29324-366E9984 for ; Wed, 06 Aug 2008 13:59:00 -0400 Received: by rv-out-0506.google.com with SMTP id g37so31497rvb.23 for ; Wed, 06 Aug 2008 10:58:57 -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=kfGOHrJD/kPff4YvUWXopGraC1P2GFVLhMliSRwnQxI=; b=X0rAb/OMbzOa5AXUEavdCeQB9cNwblwlGNwsy8Yt7oBIeJu1Lr3jqU7MtOuKMfFbwO kriFbb1VV1L4pUcDsPL4Krnris5yRO8QOWsdA4BlUO+JUvLoijTz/TlzRRjD6NCm4ZQv 6dKihapvyYBs6i2sdNAzARSQbmxMK21csA6Kw= 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=iXArghclgpGotFIhjApta9RKhFAfZgzsycWJAOJDFEr8Ev2pWRFme8OWXCh+flLzHV xlIE9fLQ7o3nfVqgQJlfzeTc2x9vPyKeIT5pedjJzO3C6wavJ8jlVVDnzOX3v/LIhQ8o qMdz0XsToaG7ygCGwfMZtlRw1bDP6+egoFNeA= Received: by 10.140.135.19 with SMTP id i19mr202722rvd.70.1218045537325; Wed, 06 Aug 2008 10:58:57 -0700 (PDT) Received: from 207-177-41-213.getmyip.com ( [213.41.177.207]) by mx.google.com with ESMTPS id b39sm11482485rvf.9.2008.08.06.10.58.55 (version=SSLv3 cipher=RC4-MD5); Wed, 06 Aug 2008 10:58:56 -0700 (PDT) To: internals@lists.php.net, jani.taskinen@iki.fi Date: Wed, 6 Aug 2008 19:56:58 +0200 User-Agent: KMail/1.10.0 (Linux/2.6.26-noch; KDE/4.1.0; i686; ; ) Cc: Rasmus Lerdorf References: <48997CC5.60709@lerdorf.com> <4899CEE9.5050904@sci.fi> In-Reply-To: <4899CEE9.5050904@sci.fi> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200808061956.58909.arnaud.lb@gmail.com> Subject: Re: [PHP-DEV] clearstatcache change From: arnaud.lb@gmail.com (Arnaud Le Blanc) 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]]) > > Here is a patch to add that optional parameter (for PHP_5_3): > > http://pecl.php.net/~jani/patches/clearstatcache_optional_param.patch > > --Jani