Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39727 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20312 invoked from network); 7 Aug 2008 09:35:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Aug 2008 09:35:02 -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.134.191 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.134.191 mu-out-0910.google.com Received: from [209.85.134.191] ([209.85.134.191:3221] helo=mu-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/33-29324-3C1CA984 for ; Thu, 07 Aug 2008 05:35:00 -0400 Received: by mu-out-0910.google.com with SMTP id i2so73880mue.3 for ; Thu, 07 Aug 2008 02:34:56 -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=RTj49nMucm7Pwo7BBzRAInyxzux8y2XJXVCmfH5a6Aw=; b=TDdTQZZLLJV9J+cZ8lxsFqARAebHicqxPWLztEPWyARJfpMIopdzF1w2vBWoUCU9/t i4uTiRkVfQI1x9P+u8iXV8KJj+Rl1Kv461BqhRt1kTgjkuPDQvMzfahjuSFxU+qiichE FnFFMUk/15etHL445d+IIbvH5p9aJ4h0ziWN8= 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=jgVSlyigRbGccaSiWVi5pUbTa3mE+oLeafCKEPbixnN97ZPtzw6/AS4IBXIQYTL/3T RI6yl4vUTMxpuLqm8HmqFYX3szhJtf+IjBAiKKiyBzXPIQaWvehuHKsy7nCpuJjlJTlt wEd3n5erq2xEvjMgkBPzmKPoc5XmfUVeYFvW4= Received: by 10.103.249.7 with SMTP id b7mr2093643mus.2.1218101696465; Thu, 07 Aug 2008 02:34:56 -0700 (PDT) Received: from 207-177-41-213.getmyip.com ( [213.41.177.207]) by mx.google.com with ESMTPS id j9sm3876289mue.5.2008.08.07.02.34.54 (version=SSLv3 cipher=RC4-MD5); Thu, 07 Aug 2008 02:34:55 -0700 (PDT) To: Johannes =?iso-8859-15?q?Schl=FCter?= Date: Thu, 7 Aug 2008 11:33:02 +0200 User-Agent: KMail/1.10.0 (Linux/2.6.26-noch; KDE/4.1.0; i686; ; ) Cc: internals@lists.php.net, jani.taskinen@iki.fi, Rasmus Lerdorf , Hannes Magnusson References: <48997CC5.60709@lerdorf.com> <200808062101.00394.arnaud.lb@gmail.com> <1218066607.11642.6.camel@goldfinger.johannes.nop> In-Reply-To: <1218066607.11642.6.camel@goldfinger.johannes.nop> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200808071133.03539.arnaud.lb@gmail.com> Subject: Re: [PHP-DEV] clearstatcache change From: arnaud.lb@gmail.com (Arnaud Le Blanc) On Thursday 07 August 2008 01:50:06 Johannes Schl=FCter wrote: > On Wed, 2008-08-06 at 21:00 +0200, Arnaud Le Blanc wrote: > > > > btw. I just noticed chroot() calls this > > > > realpath_cache_clean()..intentional? > > I'd assume that, as /foo inside a chroot is different from /foo > outside... > > > 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 fu= ll > > cache in plain_wrapper.c :/ I updated the patch, just left the filename > > argument to clearstatcache(). > > If you fix the arginfo like Hannes it's, good. If the name of the second > parameter in the proto ("filename") is the same as in the implementation > ("pathname") it might even be a bit better :-) > > johanes Commited :)=20