Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86971 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75335 invoked from network); 30 Jun 2015 11:07:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2015 11:07:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:47002] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/60-03808-55872955 for ; Tue, 30 Jun 2015 07:07:05 -0400 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 557934B008E; Tue, 30 Jun 2015 13:06:58 +0200 (CEST) Reply-To: To: "'Karoly Negyesi'" , References: In-Reply-To: Date: Tue, 30 Jun 2015 13:06:50 +0200 Message-ID: <00c901d0b324$dd61c0b0$98254210$@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKV3IRBhAKnfji+6vfvmhGIFgnRnpw6jYuQ Content-Language: fr X-Antivirus: avast! (VPS 150629-1, 29/06/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Please unhardwire the streams from opcache From: francois@php.net (=?UTF-8?Q?Fran=C3=A7ois_Laupretre?=) Hi, > De : Karoly Negyesi [mailto:karoly@negyesi.net] > > I wrote https://www.drupal.org/files/issues/2513326_34.patch this > monstrosity out of necessity because > https://github.com/php/php- > src/blob/6e3e1e31e92fd57f12471461fc3496ac057757b0/ext/opcache/ZendAc > celerator.c#L149 > is_cacheable_stream_path > hardwires file:// and phar:// >=20 > Please give us a chance to override this somehow in PHP 7.1 or even = 7.2 > since it won't be for a good number of years before we can use it but = it > would be nice if Drupal 9 didn't need this fun. https://wiki.php.net/rfc/streams-is-cacheable was a first proposal to = allow streams to decide what content should be opcode-cached or not. = After discussing it with Rasmus, we came to the conclusion that this = proposal was too limited, because it assumes that the URI will be used = as key, which shouldn't be always the case. The next RFC, planned for = 7.1 if time permits, will ask the stream for a 'cache key'. Then, the = stream code can decide whether the URI is cacheable or not (off by = default) and return the unique key to use. It will be more flexible than = the current fixed values and could also solve issues with chrooted = environments, where using chrooted paths as keys generates conflicts. I = didn't have an extensive look at your code but I think this can solve = your concerns. Regards Fran=C3=A7ois