Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110232 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94839 invoked from network); 21 May 2020 15:28:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 May 2020 15:28:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DF8281804CB for ; Thu, 21 May 2020 07:07:30 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8075 40.64.0.0/10 X-Spam-Virus: No X-Envelope-From: Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-oln040092011046.outbound.protection.outlook.com [40.92.11.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 21 May 2020 07:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SL5YbNM1sjtWU0r+OhhfQjERs5Rz+TRfcS2sBd4IVyizbKX4GUHrgmcQK3GqysuDYbCEqE1dG6aE+dIkgCiWr3mClTVer4ckdbL9Y0y4CqTwAFx6rQNHkYmqxtgdOw9EoxR6HJr1pPZavBfC5ZPtHCRD4dPQghr5IuZCMfdvUGv5iLSs4qP3dZZyP25gpv7+7yuzfNGTODqN93O420NsJOyltVfq7X4YPFzptwbXQh+taufo3vGH3uzBDUstDOZtjMyIMm4vjeivi9jqMTx8lGd4mz9U4ZWkFRnxiIV5zp7KmsRQsCklASHbZp+t5Vx/GgAj4Fojm5Na6dwROzyrOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V8Zad3lKkUJ6tpMSAvIVanfJ2yTmpOm5JbVS3BzcLU0=; b=H43yWvZZ5/7O7EpTwkGO3m3Qc/vYv407Ho0mx9TaBtca/pfq4/ZNadebYbrKOG+FdLZLNQldZpUxqlRQiu8adNr+v4wZIxh+qhbyUkmJhUkU6E7sRCcQZou2I7vxnR7T+LjUhACmz+zIgTH2TM9LMyLBcH+OKdPjwjHbPwBh54NkekDAAMpB9T9w86hoEfVyd2U+DH32O222TtiLhU/RGN9K/GEjsa/tyjk50F0A2rA4oz29Z2bNlnJbGm2BpcyHQyMuouFGKhR5bKrUFuzklitHe+GQpc9ntp0m/KEvFUUXtxYn/+I6zpK7j4PmS+wtxEPe9aZh3ilgqWqkiRcUCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V8Zad3lKkUJ6tpMSAvIVanfJ2yTmpOm5JbVS3BzcLU0=; b=QU5EiaHAG7QFzeW2Q00PqGI27Ou6w43zCNdDSFN3DmmNtzF9kp8SUwLSScGNR8fPhDfE2MuNZvlXlaA5MEvJrMdnyHO0BFIG4kkxVtfGLaScddUdU6Yaew9osXqrUVo5QkABWpOxp0VmxlqYfU0H0A/zTqPIF/cnX4Y2Tn/PgBfH6uDY+JffBkeyCHtXLAAPmjWHVWe5hm1evFslt2nqNz2wc1hrZXDX42Mu+Vhp06WG1PUVPDifALa4qr7KjE3wyDdFejIhtCmB4ZsKy2EDxSEdL07RzjTrp3ewtXVkGYUWVfyc4gz96n/Zn6l6ZmaBArl2HbPB6Ly+KJwGLr3PyA== Received: from SN1NAM04FT019.eop-NAM04.prod.protection.outlook.com (10.152.88.55) by SN1NAM04HT153.eop-NAM04.prod.protection.outlook.com (10.152.89.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Thu, 21 May 2020 14:07:28 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e4c::45) by SN1NAM04FT019.mail.protection.outlook.com (2a01:111:e400:7e4c::152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 14:07:28 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::3054:f599:829e:7dd1]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::3054:f599:829e:7dd1%6]) with mapi id 15.20.3000.034; Thu, 21 May 2020 14:07:28 +0000 To: Derick Rethans CC: "internals@lists.php.net" Thread-Topic: [PHP-DEV] [RFC] opcache.no_cache: Opcache optimization without any caching Thread-Index: AQHWK5wzTowRpqnQX0mkb/2wfLlg3airAgEAgAAIULyAB423UA== Date: Thu, 21 May 2020 14:07:28 +0000 Message-ID: References: ,, In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:01A251334ED9F3DA2A32693F42B68CFD2F8656A1F79C0A2799948A203FB3CB7F;UpperCasedChecksum:13D4813872E73DD9C0344595EE21BFE8113B3E2B51968C0D35B5B657CC392510;SizeAsReceived:7391;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [a1Y0NFeWrPLVPkPbp1MUK+DRCiCTcZSzLUffZqguXfKNe9l6Pbp0G4cRtSGb3kHF] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 6bc4681f-19e8-42be-3e93-08d7fd904bd5 x-ms-traffictypediagnostic: SN1NAM04HT153: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: la+qUjTyCbawkg0lkv6c+1bVhjIzAwBbdbINPfuCtCCsMvo9jytilanPlmfIRpF5eCABrQ7OgdHjgF58N2MJHfGgne9P+R3BwIDS57M+dAPBEEG1PkAwwPc5tqMEsOQ1IC7fOF+VaVcqPxmKa/QhhPEoxHFp6PCURs0S3vroBt038DzRh1pT7iiRE9cU/rZi/tJ0lhhJQL9iTUPPf3lU7dQkjJ2rQruNAgi4tUTH3tpJ3tmSwixw8ccC4DDm5AiE x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR07MB6618.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; x-ms-exchange-antispam-messagedata: 7E7eCxbNbIDq4hFhWHhL8F9TmXfglwLtWBdcdBGwywGT3IhPNZRWo66QR5ywnOM9Kf/t3GzaV638ea7ZTZMcGuyydGo4ScvOFrqN4yMvT5e8XM8n+zdizEuG17EVu20iQ24tCUw23w50BM6Ty/cOQYVwRFlbkwISUUGyTkpfOQfJy7apipkQEX+gccvFWgOJi0vMI3hPNxaCuC7ceysAzg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 6bc4681f-19e8-42be-3e93-08d7fd904bd5 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2020 14:07:28.4679 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM04HT153 Subject: Re: [PHP-DEV] [RFC] opcache.no_cache: Opcache optimization without any caching From: tysonandre775@hotmail.com (tyson andre) Hi internals,=0A= =0A= https://wiki.php.net/rfc/opcache.no_cache=A0has=A0been updated.=0A= Instead of opcache.no_cache=3D1, opcache.enable_cache=3D0 is now used to di= sable caching.=0A= =0A= In the RFC, I wrote that opcache_get_status() now includes the following ne= w booleans=0A= =0A= - `optimizations_enabled`, which is true if any optimization passes will ge= t run.=0A= - `allow_cache`, which will be true if any form of opcode caching is enable= d.=0A= Maybe `cache_opcodes` or `opcode_cache_enabled` would be a better name.= =0A= =0A= Any thoughts on whether opcache_get_status() should be changed at all here?= =0A= It's probably possible but inconvenient to determine what's being done with= extension_loaded() and multiple calls to ini_get(),=0A= and the intended meaning of existing flags such as `opcache_enabled` was ne= ver documented=0A= in https://www.php.net/opcache_get_status=0A= =0A= Any other thoughts on the RFC?=0A= =0A= > > In my opinion, configuration names should never be "in the negative".= =0A= >=A0> Instead of defaulting to opcache.no_cache=3D0, default to opcache.cac= he=3D1.=0A= > =0A= > ... the setting isn't actually enabling cache, it's allowing cache (i.e. = opposite of disabling),=0A= > so making this "opcache.allow_cache" might be the best. I'll probably go = with that.=0A= > (similar to allow_url_fopen, allow_url_include)=0A= > =0A= > ... `opcache.cache` could be confused with the caching strategy or the pa= th to the cache,=0A= > or being sufficient on its own to enable caching=0A= =0A= Thanks,=0A= - Tyson=0A=