Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81747 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83931 invoked from network); 3 Feb 2015 23:55:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2015 23:55:38 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:61017] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/4C-20608-9FF51D45 for ; Tue, 03 Feb 2015 18:55:37 -0500 Received: by mail-wi0-f178.google.com with SMTP id bs8so162796wib.5 for ; Tue, 03 Feb 2015 15:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lgmHILL0od5dD52A3rf4hDNx+hFl+ZHVGZsACrwdpSM=; b=WdjtnuQRSPxQHEEmX71wmXoKNyzGlYNjT4mKb9/ihRmmy8ehr2WyXK0qClNVBDy1g1 jQhfpfcdK85Kgs7P/ZraZA+rEJ15pQBEjzv5115UMCvv2ociNMgpk+SKj6tM3kqoplGn oyEtwXwWYoluVhsjRujcScVldHKHzqBuT930looDZ+39U9Lq6t12udxRHaLzSCuE8urj /xNP9WVlRgHb/V4/ukKhgdVdNCnaXOz5NbMS2eejkAZEu0+5MucYsXblSTu3jsf1a0jH jOUjiGk89jUdR48OKeCP0sNz4oHHP2ijgVxBIjwvxR0mfTYdivBMCSbuiq1bWTsX52Ap jvJQ== MIME-Version: 1.0 X-Received: by 10.180.105.66 with SMTP id gk2mr38964313wib.30.1423007733838; Tue, 03 Feb 2015 15:55:33 -0800 (PST) Received: by 10.216.50.139 with HTTP; Tue, 3 Feb 2015 15:55:33 -0800 (PST) In-Reply-To: <54D1593A.3000607@rodas.me> References: <54D1593A.3000607@rodas.me> Date: Tue, 3 Feb 2015 23:55:33 +0000 Message-ID: To: Cesar Rodas Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Question regarding stream wrappers and op code cache From: leight@gmail.com (Leigh) On 3 February 2015 at 23:26, Cesar Rodas wrote: > Hi Guys, > > I have a doubt, is it efficient include/require files from a source > different than the "real file system" a stream wrapper class? My > question is, would the op-code cache work as it would when reading a > file form the filesystem? > Do you mean if you `include 'mystream://something.php'; ? Interesting question. I'd like to think that when opcache tries to stat the file that streamWrapper::url_stat is called, and keeping the mtime the same will cause the cached version to be used. Really no idea though, I'd like to know the answer too.