Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115985 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80335 invoked from network); 7 Sep 2021 09:12:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Sep 2021 09:12:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 10A1A1804AD for ; Tue, 7 Sep 2021 02:50:01 -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=-0.2 required=5.0 tests=BAYES_20,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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 ; Tue, 7 Sep 2021 02:50:00 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id j12so15525865ljg.10 for ; Tue, 07 Sep 2021 02:50:00 -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; bh=XSWioOPG648ekh1e6cuPvZNlhHSyeoGhV2OWxXFJ0JM=; b=erjnA9XCwypdinHIUNSpulG7G9r6RQU+e6WWIl1CAXIEdfNV4vF0KM4xsjxdfvz1Wf 2VKknkBJgFGgpQmJ9vQKh/+bKZ/mqOm2l984YBXZeTsXUdu/PmiNCXCkIp9iyfOsIJpZ fh7DuSL67hqvzEtNKfZxpOpZOfb4izxnAd1IE= 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; bh=XSWioOPG648ekh1e6cuPvZNlhHSyeoGhV2OWxXFJ0JM=; b=mY3sj+1sNRNs++zduIVWcpVkXCGAJdPPB1S9wjShUIgHFkzLIv33+2LgCv4q8v8AWt ObNwj435mSzKJ4RWGU4d7es+91MlWFn7NihdUQwEf2hxvXuUzQbsc0LTa1lHnFzACzA4 BlByewxr61X2hg5T4Zozow3oayWevirQqLml0zo+g90QevgReDABU7dUr3gnm4+LJBfk hf1msk2Pd0dR5X5kozGNudVmhxGilcDjkinqxBsPDuRTuzVopw0QQ6ukDRSCThrKBiCz u106qdOuWdJdO/mf6e4ESTvdUaPmBu+TVIqh9p+JuecoQ3Ll3rXSy7THOKAFXJi5ypJm wLtA== X-Gm-Message-State: AOAM532ou6VAXqak9UCYvhhy3zDGLCmjzcGDOOF5MW9kLVHJVf0HpVRu 0KX73T83ePork5YWmmZ+tCoRpkyKXKgr5RMovCdZWCojYmw= X-Google-Smtp-Source: ABdhPJxno7aIA+Ox3xFFe3IFuLnY5Lq2CdWxyYI5On96kXqoFCBnAML1LTdR6hY3sx2QT+DLj7WxEhOv2ifsPnFLrxE= X-Received: by 2002:a2e:a885:: with SMTP id m5mr13932684ljq.27.1631008198918; Tue, 07 Sep 2021 02:49:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 7 Sep 2021 10:49:45 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000052963e05cb64b03f" Subject: Re: [PHP-DEV] [RFC] [VOTE] is_literal From: craig@craigfrancis.co.uk (Craig Francis) --00000000000052963e05cb64b03f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 19 Jul 2021 at 19:59, Craig Francis wrote: > On Mon, 5 Jul 2021 at 19:14, Craig Francis > wrote: > >> I have opened voting on https://wiki.php.net/rfc/is_literal for the >> is-literal function. >> > > This RFC has been rejected; with 10 votes in favour, and 23 against. > [...] > And thank you to Matthew Brown for adding the 'literal-string' type to > Psalm: > https://github.com/vimeo/psalm/releases/tag/4.8.0 > FYI: The 'literal-string' type has now been added to PHPStan, thanks to Ond=C5=99ej Mirtes: https://github.com/phpstan/phpstan/releases/tag/0.12.97 Obviously I'd still like libraries to be able to protect everyone from introducing Injection Vulnerabilities (as the majority of programmers don't use static analysis), but that's for another day. Craig --00000000000052963e05cb64b03f--