Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108104 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64040 invoked from network); 12 Jan 2020 22:31:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Jan 2020 22:31:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 821BD1804F6 for ; Sun, 12 Jan 2020 12:37:30 -0800 (PST) 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,FREEMAIL_FROM,MISSING_HEADERS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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, 12 Jan 2020 12:37:29 -0800 (PST) Received: by mail-ot1-f50.google.com with SMTP id h9so7097234otj.11 for ; Sun, 12 Jan 2020 12:37:29 -0800 (PST) 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:cc; bh=VOL6etuReCgfZ7r7wvSpHAdd2HYNZddR2YZDCXvvegQ=; b=ueVvR7C4Nt0X42GoakRsrxhJd/N3UXadc4mDsh96DqsqglT2q08fHg8ZeUnFA+/8RX y1URnmTptrWTnpQl83UeP54qBiJQ3EjHniB/L3NaGP9qcxBhGoQHAVlVkJYQSZjsyUf2 HWJxziKiwVwX5uyPlDsNvYPZazvbJEPZv/VdE/O8qrw7WPsCM5V2EjGCcxUo5zuOoPi/ SNla1D3qZG+u8q+27JsEZG3IxnFq3MtjzKGJLKTXmQuBs+NxSgrTr782arTtNDdY7+J4 caE3uRkyCtOjB+nk0xQ333WEKHMeb4FomvWVVFUDauCJDILN2cpsDFAlaYVpygRJ7j6x 8XqQ== 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; bh=VOL6etuReCgfZ7r7wvSpHAdd2HYNZddR2YZDCXvvegQ=; b=QfodB4GIXKECbdXMO5gWsBJD09Vo6bfpWKc3l3ufIwYtI+XuBoD0LDpGCDrEIfdhnk jJCZVaWST89qG3exsvra78iUmdN9vBalOFy12MIPDgZZsBsRI+CaINhSW7oA2DeRcvZb nHWbhM+LZtyc/yOC18Mg9Sm2oTZGUxOAobUfw4an+bIdFRxbxAFmom91UW6MwCAA0Z/v skYpLS5fO1EopJWYty9YgTjUztbhfelwB5nnJ7GxsBFsqXs51bKmx/3TBmUs44qzkxEm /HZ4zB2fzBPX6DBazPZXsGmPFgOe9lIUGTcHeTJLnxB9VsLPgXl0YyWjZcdpqnmZg988 ABHA== X-Gm-Message-State: APjAAAUaAyvu0ynN1M0WMPyqAnACNqcTxu3bBH5EssUtMn0SyDuvjmc/ +1q6Sgz57815gSzw3KInqmc9AgpcP0CkRakb15S9Pj06 X-Google-Smtp-Source: APXvYqzgtZUf1KPKj8bglrVfMcsqCGEg3JvoUGKOcsQmC5KIJT43f91PdYRKHM4U0dKeeQPsKeqskdXz7pn1L/w+vX0= X-Received: by 2002:a9d:2dca:: with SMTP id g68mr9656974otb.150.1578861446033; Sun, 12 Jan 2020 12:37:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 12 Jan 2020 20:37:14 +0000 Message-ID: Cc: php internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Introducing compile time code execution to PHP preloading From: robehickman@gmail.com (Robert Hickman) > Once you are in a live environment you want a read-only file system, for security and auditability. Code generation at that point is then impossible. Moving that code gen to a preloader wouldn't help with that. My proposal has no impact on the file system. It would modify the AST, and thus would be entirely in RAM as opcache is also in ram. No source files involved at all.