Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115378 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74563 invoked from network); 9 Jul 2021 10:27:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jul 2021 10:27:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4F0C11804C3 for ; Fri, 9 Jul 2021 03:49:53 -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, 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-Virus: No X-Envelope-From: Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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, 9 Jul 2021 03:49:52 -0700 (PDT) Received: by mail-ej1-f42.google.com with SMTP id ga14so403984ejc.6 for ; Fri, 09 Jul 2021 03:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:date:from:to:cc:subject:in-reply-to:references :user-agent:message-id:content-transfer-encoding; bh=tR4VnRrj5V5xPFKff/PNNYdmAmxeklE3rFNKl9hdog8=; b=JM0JQph094/OfvVOfPxH75o61pw/q4BC9yma1Tca5KwuZpNfm30F2tJBvKS4MMNGNw eDJ9tjefdhERSRt+2wFkX37fjhZAFHIsZmkiXctxsQwukWl0tlvA8hyloCVgXkRayxw/ I/vaeOZezWBpWzVv6RmbCTVERUghpZXEeuQPmV2SUi3HDTpkDfGlSIhEiYRjHdTPITbQ 4xh++bk+LX9TecKSrcv2sZqKpqkYC8dLrDYBSRKsujD2FU1Vlq9YFmWtdbYKOkhOCVpt NdHkagj4OFeUkL66Q3NuCVac1h7gdb5/Ao5lnt63VQCTLa+f3Z97V/fdiX3v6QMq/cqs 5/Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:from:to:cc:subject:in-reply-to :references:user-agent:message-id:content-transfer-encoding; bh=tR4VnRrj5V5xPFKff/PNNYdmAmxeklE3rFNKl9hdog8=; b=aSYK9bJwpigJKqG7kOxiWCJ4OhyLAU0PHAFvmIDvN0dFVcdcFLKDIJY3FIzDNomOG7 Ysh7W7U60q9Si1Qee049r1d22N/w89afqs1YWPPg95v4dpmAl6NyU50+oD+LjYThAi+D DP8LO34hCCNhqo8kj2wwxA+ii7YWaPZTUozpfDaRd0We/EdFLbAZA7zvU4EdlsOzlrHK SdTvY63O6vNjixj5vT6uBU646sWgnmNfGH8z4u8LpgQynq72PDUaTuY0mcQbHbqbGpkX tYvVu8sAas9I5O8D3M6Ttu2c78IZqvXBh7EgtBikotK/djAMgEC6HbltdtPaNRm7DL6X rGsw== X-Gm-Message-State: AOAM533vRh6TiCH2aaA/UA+5qXOMd8+2Di9MIgZ65/zB69OSU8jclIbC 0UEHOcl9LfhguFkEsa7RYNQ= X-Google-Smtp-Source: ABdhPJxYPtm6G8grYcS3EYZPIcteo1LBG3y5b8vhvINZ4DKz3NNxEXr60m+5rGnrSllgR1fgtrc8fQ== X-Received: by 2002:a17:907:3e02:: with SMTP id hp2mr36379441ejc.4.1625827791415; Fri, 09 Jul 2021 03:49:51 -0700 (PDT) Received: from k-piste.fi (k-piste.fi. [95.179.136.7]) by smtp.gmail.com with ESMTPSA id x1sm2682657edd.25.2021.07.09.03.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 03:49:50 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 09 Jul 2021 13:49:50 +0300 To: Nikita Popov Cc: Craig Francis , PHP internals In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.11 Message-ID: <5144ede56329a246e0c95469d887bb79@gmail.com> X-Sender: lauri.kentta@gmail.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [VOTE] is_literal From: lauri.kentta@gmail.com (=?UTF-8?Q?Lauri_Kentt=C3=A4?=) On 2021-07-07 12:23, Nikita Popov wrote: > permanent interned strings, which will be predominantly (or entirely?) > non-literal. At least it doesn't look to me like names of internal > functions/classes/etc are considered literal. I think this may be > problematic, in that now the permanent non-literal interned string in > the > function/class tables will be different from the per-request literal > interned string used by user code to reference it. Just wondering, if this is a major performance problem, is there a compelling reason why the internal names couldn't be marked literal (even if it's technically "wrong")? It seems unlikely to get a function or class name accidentally in a SQL query and even less likely that user input was involved. -- Lauri Kenttä