Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111987 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7908 invoked from network); 2 Oct 2020 17:39:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Oct 2020 17:39:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 978981804C0 for ; Fri, 2 Oct 2020 09:51:46 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 2 Oct 2020 09:51:46 -0700 (PDT) Received: by mail-il1-f172.google.com with SMTP id b12so1826273ilh.12 for ; Fri, 02 Oct 2020 09:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Bz4FxUd3nXYX/Kb+Sq5rsfLfKDMNAT7wFpzwHDC+tSE=; b=D92Y9y9nb6X3vb1LTJm3tSR+8EzNyWif48AGvfXgHeW1oLM72yDXiEP7PHu6CnkRBl GtqWBuv8I76coVCmXcASXEl/CPnGs9AzGuIbxosO0W6XA81nchcwzQyQdKuFK4o9QReS tFXlECThUF5biCzK7w7RYzhvh7gHK+gIiXT5RZlzUqVa/bp21bo8j2vvEWYNrFeXJy7a lu3olm95P0LZE42+vb8FePwrm3DR8taGna76+1MKzncWJUOgL8aMSHKpzXiqZDXOYqwj aQzuRp89NPHiLiTkRe/85cAE1PaE+WpX/h1aIuTLPZ0vv6Kuqsu5H3WVaNgi/DzNQAYK FS2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Bz4FxUd3nXYX/Kb+Sq5rsfLfKDMNAT7wFpzwHDC+tSE=; b=TXoqv6kckotjB7jPXEPlQg6G+JXAtScGpkO0WOTzwjWPIGO65SiEGN2WTNLR40Gjxb e496XrR9LUiEu7VouBv9v0QX2B+/uAX6YPex4uxjKSAspCHbPe5PXfuK9HbgHB10UVFT fl4DNcNkQNeSYjTeFJbwWspW9gw0Obgac37GDNJ6rcBqh9brCA5WEqsITd+4ayT62/2v l1b7rMbwmuuBn22sPg1bbTjwRArAplc21OJm6VygN0XmVm/EPX+ixau2RWZChgyN+roV sDc6ximntUy49wJ/GGIxOgPgE/QiwyQfPA3uL+MU+T3bjjMG5Vp73ej/1jJKF3MEBLST 6AtQ== X-Gm-Message-State: AOAM530z3mRDRPLLEJQ4Tmy/UmBQqR90klurVoBgf9rOJbvgqtA0pogp kEZZL2pfujmqQvNmXZeAzKX73h3Po9Gw/844t2optFID X-Google-Smtp-Source: ABdhPJzwqo3ddoafPU2Uucj0PR3bZp8t5fKhJ9huxTFepFF1zGEIdOqtWEGou7Da4dgBdowCtOVeSLoG6nu348m6jx4= X-Received: by 2002:a92:dc46:: with SMTP id x6mr2670051ilq.229.1601657504302; Fri, 02 Oct 2020 09:51:44 -0700 (PDT) MIME-Version: 1.0 References: <940131FA-19B3-406C-8982-0AD276FD1879@gmail.com> <142da816-f3bf-2f05-6147-ccd2117e1dfd@gmail.com> In-Reply-To: <142da816-f3bf-2f05-6147-ccd2117e1dfd@gmail.com> Date: Fri, 2 Oct 2020 17:51:32 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000988c1f05b0b2f2d6" Subject: Re: [PHP-DEV] RFC: execution opcode file without php source code file From: rowan.collins@gmail.com (Rowan Tommins) --000000000000988c1f05b0b2f2d6 Content-Type: text/plain; charset="UTF-8" On Thu, 1 Oct 2020 at 16:13, Dik Takken wrote: > The only use case I see is to package commercial closed source > applications as Docker containers. That allows the packager to ship the > compiled code along with the exact PHP version and configuration that > can run it reliably. > Could this not be achieved by freezing the existing OpCache file cache into the Docker image and telling OpCache not to validate timestamps, so that it always loads from the cache? That way, your application wouldn't even need to be modified, as the require_once lines would still refer to the original source paths. Regards, -- Rowan Tommins [IMSoP] --000000000000988c1f05b0b2f2d6--