Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114940 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57797 invoked from network); 18 Jun 2021 08:30:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jun 2021 08:30:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0472B1804B0 for ; Fri, 18 Jun 2021 01:48:08 -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.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from wp160.webpack.hosteurope.de (wp160.webpack.hosteurope.de [80.237.132.167]) (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, 18 Jun 2021 01:48:07 -0700 (PDT) Received: from [2a02:8109:9d40:1d44:8345:1865:7849:5b1]; authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1luAAX-0004vj-5N; Fri, 18 Jun 2021 10:48:05 +0200 To: internals@lists.php.net References: Message-ID: Date: Fri, 18 Jun 2021 10:48:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-bounce-key: webpack.hosteurope.de;marc@mabe.berlin;1624006087;a8bc8b18; X-HE-SMSGID: 1luAAX-0004vj-5N Subject: Re: [PHP-DEV] Re: [RFC] is_literal From: marc@mabe.berlin (Marc Bennewitz) On 18.06.21 08:00, Craig Francis wrote: > On Wed, 16 Jun 2021 at 18:24, Craig Francis > wrote: > >> On Sat, 12 Jun 2021 at 18:00, Craig Francis >> wrote: >> >>> I'd like to start the discussion on the is_literal() RFC: >>> https://wiki.php.net/rfc/is_literal >>> >> Following up on the is_literal() RFC, thanks for the feedback. It looks >> like there are only 2 minor open issues - updating the implementation to >> allow integers, and what to call the flag/function. >> > > > As there’s been no issues raised with supporting integers, and doing so > will help adoption, the implementation will be updated to allow them. Not sure but what happens if you have like a DB connection in big5, sjis, ... and add an integer as ASCII char into it? But that's the only edge case I can think of. > > Now to choose the name, with the options is_known() from Joe and > is_trusted() from Moritz: > > https://strawpoll.com/bd2qed2xs > > Keep in mind it might also become a dedicated type in the future. > > Craig >