Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114913 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 61783 invoked from network); 16 Jun 2021 21:12:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jun 2021 21:12:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 461231804C0 for ; Wed, 16 Jun 2021 14:29:49 -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-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 ; Wed, 16 Jun 2021 14:29:48 -0700 (PDT) Received: by mail-lf1-f51.google.com with SMTP id m21so6614305lfg.13 for ; Wed, 16 Jun 2021 14:29:48 -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=AL0kzzRizlR0SFwhSeOmGJkGmXaUDlgRZ0JUIChslcE=; b=auWfFlIs1ut+QKQOZggbV/R2cs4Gk9aJGK+Y6S9JFVQENKVOMFqETmGQkbKpy0JcT2 9l5SbnUgU82zj4yQlzGx2/kkK07KkRFSDC3Luya57zZsZpSxxEn5NaZQKbTNFGWbhey0 6DYjxpQkUerTHtst9s66zcyS5qQeU2zGmQX10= 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=AL0kzzRizlR0SFwhSeOmGJkGmXaUDlgRZ0JUIChslcE=; b=tiKVukrAijNSSK5lToLAnb754YcCYYSxLblHpf8C8LXNPqaC247NM0KHLWJu6TsKHe MTw6OLqsyePH88yRUBzxnt6S3EUGRrPTQjb4Whk+wE6+eUVhdgGLO6g1wQ+7dbj0CEqY JVzlKfIMGNP2zyD2aJNeUCVYtEim9YcfmJkSQaR01kNvGqLxXbJEnZUrDmaOhzMTgkKT x+v/vpbWFLfKrExp9HyA7PzqqTk2EdGVyeo0vLRWt4vQQDpZ2+y9fmjwBwD2qO34iaOe YGphB1VSWIZAuFvJXwI8JCrTXy0VHop7crmUsYORZ+6R77zvj2W+l2A+Vga8NbwZqG69 Lveg== X-Gm-Message-State: AOAM5334I64piWTAQSlSEpPC1m8UGKi8ysZi+YbmOxRohWiT4/Pr8bfy Q/OhTdVA8cgnQ/gVMNTqAXO4dSV/A8T1g+OOX8I+aQ== X-Google-Smtp-Source: ABdhPJzLEtbg7MFMTtSeG63znnno3Ue/rGFkRhOHl3xvPq2B/p4vv995OhBb79dKhQfEDY2JPZsd9U/DMC7pvilwezs= X-Received: by 2002:a05:6512:2349:: with SMTP id p9mr1297357lfu.143.1623878987085; Wed, 16 Jun 2021 14:29:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 16 Jun 2021 22:29:36 +0100 Message-ID: To: Bruce Weirdan Cc: PHP Development Content-Type: multipart/alternative; boundary="0000000000002f0f2305c4e8ca58" Subject: Re: [PHP-DEV] Re: [RFC] is_literal From: craig@craigfrancis.co.uk (Craig Francis) --0000000000002f0f2305c4e8ca58 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 16 Jun 2021 at 10:19 pm, Bruce Weirdan wrote: > On Thu, Jun 17, 2021 at 12:01 AM Craig Francis > wrote: > > is_literal can be used for strings because we can flag what=E2=80=99s > > user and what=E2=80=99s developer defined, and with Matthew=E2=80=99s r= equest, it could > do > > integers (because an integer value alone is not inherently risky, and > it=E2=80=99s > > already used a lot). > > To clarify, do you imply that *all* integers are safe? Or would they > also be differentiated into literal and non-literal varieties? This would be all integers, to support the request from Matthew. I also believe, after a quick check with Joe, that it=E2=80=99s not possibl= e to add a flag to an integer (=E2=80=9Cnon reference counted types are stack alloca= ted, ie the zval on either side of a call boundary are unique=E2=80=9D). So it coul= dn=E2=80=99t work the same way. Craig --0000000000002f0f2305c4e8ca58--