Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85237 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48615 invoked from network); 19 Mar 2015 20:26:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2015 20:26:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=ericsten@microsoft.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ericsten@microsoft.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain microsoft.com designates 157.56.110.101 as permitted sender) X-PHP-List-Original-Sender: ericsten@microsoft.com X-Host-Fingerprint: 157.56.110.101 mail-bn1bn0101.outbound.protection.outlook.com Received: from [157.56.110.101] ([157.56.110.101:43845] helo=na01-bn1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/6B-25408-DE03B055 for ; Thu, 19 Mar 2015 15:26:22 -0500 Received: from BN1PR03MB105.namprd03.prod.outlook.com (10.255.201.11) by BN1PR03MB106.namprd03.prod.outlook.com (10.255.201.14) with Microsoft SMTP Server (TLS) id 15.1.112.19; Thu, 19 Mar 2015 20:26:17 +0000 Received: from BN1PR03MB105.namprd03.prod.outlook.com ([169.254.8.141]) by BN1PR03MB105.namprd03.prod.outlook.com ([169.254.8.141]) with mapi id 15.01.0112.000; Thu, 19 Mar 2015 20:26:17 +0000 To: "internals@lists.php.net" Thread-Topic: [Q] Does PHP have a negative cache for file stat operations? Thread-Index: AdBigl6xcms3XbkhTLCo3UkCn4Fa6g== Date: Thu, 19 Mar 2015 20:26:16 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4898:80e8:ee31::3] authentication-results: lists.php.net; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB106; x-forefront-antispam-report: BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(33656002)(86362001)(86612001)(102836002)(2900100001)(92566002)(74316001)(2656002)(87936001)(450100001)(77156002)(62966003)(2501003)(46102003)(107886001)(2351001)(99286002)(76576001)(122556002)(229853001)(54356999)(40100003)(110136001)(50986999)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN1PR03MB106;H:BN1PR03MB105.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5002010)(5005006);SRVR:BN1PR03MB106;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB106; x-forefront-prvs: 052017CAF1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.onmicrosoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2015 20:26:17.0150 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB106 Subject: [Q] Does PHP have a negative cache for file stat operations? From: ericsten@microsoft.com (Eric Stenson) PHP Internals folks-- We're doing some performance work in WinCache, and we're finding that some = frameworks are...uh...enthusiastically using file_exists(), is_file() and i= s_dir() functions on files/directories that don't exist. Every. Single. Pa= geload. Does the PHP stat cache include negative cache entries? If not, why not? Are there any existing extensions that implement a negative cache for file_= exists(), is_file(), et. al.? Thank you! --E.