Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115381 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92492 invoked from network); 9 Jul 2021 13:45:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jul 2021 13:45:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5F2B2180507 for ; Fri, 9 Jul 2021 07:07:38 -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,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-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 07:07:37 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id q18so23519623lfc.7 for ; Fri, 09 Jul 2021 07:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=06zVUIQIDhed+ZwSbSnmNnkNO0j62+VEKM1dPW0kK30=; b=AhigW45nJyU19ezJryKu49bRr7G7uqGyyehNTj60yrq9UYgEjiVUR09NvnmHc73ins C4N54xuACDxLKFiYmQITqbfCbxilWCnchYxt4xuIrJ22HRBzuhdVqNa2TrWr0enSybka +8zakvWM769Nh2unEURmGksML1JFMLpGJY3Pg= 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:cc; bh=06zVUIQIDhed+ZwSbSnmNnkNO0j62+VEKM1dPW0kK30=; b=N8Onnc1yj9H2doDXIVUnZeGU7/mDeYvU0pNsSdJZfuvRfPMXHbnyq3KyQs2GMYdNW4 wx+lr+mgp6Ukrw4D43QFOLkNkLqJY2rdxPUBuhcwMrmAnCpEFe99pJ51elCNESG9x+Tq sjz+DQH9HTwIBC8Us5lRcT7rBlwG1QUrjYJev8kqspZ0pwSYPRQIvI7u+UjCecLZ2jSw Fs1csTFRQLGZ0l4APHM7CCElsiIOpO6+dkM/5KOJFSNl3t13FsZ1OIMVg3uINo+Vei0T lMdtBScuzcyN9EGPmd7L+5FSYoWxGA6N0KAZzPxEgOR/GBwXwNYn1THijBAlcXUVIkkz gmiw== X-Gm-Message-State: AOAM533IRBi7WnzWQ0G2N4IsdTkeRqg0dfbswXebNYMsnM2eCxFFOi4h 6W5mNB40GLygIc+SyooQh2qCEC4u3BS+OHCaRQ6kQg== X-Google-Smtp-Source: ABdhPJyuobs4HVbBjjcU5XdWUuAQRybQzk0bY3SOo52djdAGz168BSZFRUttWJjadh/J/nq6I/aZBoKCniVnFjoDDno= X-Received: by 2002:a05:6512:3b10:: with SMTP id f16mr8793603lfv.572.1625839654019; Fri, 09 Jul 2021 07:07:34 -0700 (PDT) MIME-Version: 1.0 References: <5144ede56329a246e0c95469d887bb79@gmail.com> In-Reply-To: <5144ede56329a246e0c95469d887bb79@gmail.com> Date: Fri, 9 Jul 2021 15:07:23 +0100 Message-ID: To: =?UTF-8?Q?Lauri_Kentt=C3=A4?= Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="0000000000000a361705c6b14b32" Subject: Re: [PHP-DEV] [RFC] [VOTE] is_literal From: craig@craigfrancis.co.uk (Craig Francis) --0000000000000a361705c6b14b32 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 9 Jul 2021 at 11:49, Lauri Kentt=C3=A4 wro= te: > is there a compelling reason why the internal names couldn't be marked > literal > (even if it's technically "wrong")? Hi Lauri, Just again quickly noting we=E2=80=99re only talking about ~0.43% differenc= e, nothing major in any way. But we wanted to ensure developers didn't wonder why something was seen as a literal in one case, but not in another (we wanted to ensure consistency), because most people don=E2=80=99t know much about how the int= ernals of PHP work - especially optimisations which are supposed to be kind of =E2=80=98invisible=E2=80=99 to developers. This change also helped when a c= ouple of other compiler optimisations happen: https://wiki.php.net/rfc/is_literal#compiler_optimisations Craig --0000000000000a361705c6b14b32--