Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113950 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24251 invoked from network); 5 Apr 2021 05:21:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Apr 2021 05:21:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D6DAC1804CC for ; Sun, 4 Apr 2021 22:19:42 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MISSING_HEADERS, 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-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (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 ; Sun, 4 Apr 2021 22:19:42 -0700 (PDT) Received: by mail-io1-f49.google.com with SMTP id k8so8522930iop.12 for ; Sun, 04 Apr 2021 22:19:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:cc :content-transfer-encoding; bh=gk/Qj0NkkoZrCu/3qi88qot9lY08Dvp7PD8GNnig+eA=; b=UMGqftrIQH768kRSlRFHytMypoD+t42ikWXOFkE07MYHhvvwnuoJw4fH334KuEUe/Y 4Q9BWN19LYv+4edD0GOj4YmFPD56UfTKUkNle7DeGxhg2C2UQ0kuKixWixR7HNk2ApEe 5MsHMpYjUyfGLUBvluq13tbaKc0eJM4QEn/8A= 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:cc:content-transfer-encoding; bh=gk/Qj0NkkoZrCu/3qi88qot9lY08Dvp7PD8GNnig+eA=; b=IVqEdyiDSU6iZfObFGVNsevGKPMq7cZ1Qb+zyt5VOirKpmctLtV7i7Vk9vsJTzocqM 0tsDxhAX9DQQJLp3ZQrYPDRjDqOeWSpoC/1j7x5FY/W8PeWD7LRpoion5nKi/84jHN8A 87v5LJtX9bxDeV8sA873oRyBj18rHpDSq5Yoqtfim6K2AL276V7pDh1ZkPS3I+vxQQ9b 50fcTGIqgRPH6AM+0KAYrSTyN+R0Uvt4hUFM78b2ylbSLrC1uq2pr1BRJn1p1laMdg12 R+GxLssPRTT7vL6fdZKysLZg0hx+Ew2dofYfIVg/IZWsYQMt68ga6STL4cn4g9dAlSkQ 5ing== X-Gm-Message-State: AOAM531GDm0GRqq3lfBv7Zbh3U4biD1VvMJk1MjnMvV/oAQb//v+yBdx bMaBjd1qicSaw1mUCktAey9BsutmvscqFOvoiHyzbdvj6kH+5g== X-Google-Smtp-Source: ABdhPJyvGDH8WrEw7DhbTy8DsCdkH5Fdapoy6QXgTpoqrk3rhHNpYSdW9f0SrQcusCdWBAuL6iRH5dA6bKCvI9lydsc= X-Received: by 2002:a5e:8416:: with SMTP id h22mr18731733ioj.119.1617599978466; Sun, 04 Apr 2021 22:19:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Sun, 4 Apr 2021 23:19:27 -0600 Message-ID: Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Direct execution opcode file without php source code file From: internals@lists.php.net ("Levi Morrison via internals") On Sun, Apr 4, 2021 at 8:11 PM =E2=82=AC=E2=80=93 =E2=80=9Dk=E2=80=9Dk wrote: > > Hello everyone. > > Direct execution opcode file without php source code file RFC vote is now= open. > > https://wiki.php.net/rfc/direct-execution-opcode > > The deadline for voting is April 20. > > Regards > Chopin Xiao For those who want to execute opcodes without needing to have the source available, there are multiple hurdles that need cleared. The largest one I am familiar with (and I'm sure there are many more) is this: many hooks in the engine used by extensions and zend_extensions can cause the "system id" to change. Whenever the system id changes, the opcache must be invalidated and rebuilt, which requires the source to be available. Adding opcode handlers, requesting cache slots, and many, many more extension points all affect this. Some of these things can probably be done differently and not affect the system id, though in some cases at a performance loss. Other things may require a new, successor API that fills an equivalent purpose but without affecting the system id.