Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115100 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43996 invoked from network); 24 Jun 2021 08:15:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jun 2021 08:15:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 70B5B1804F3 for ; Thu, 24 Jun 2021 01:34:30 -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,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-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 ; Thu, 24 Jun 2021 01:34:29 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id k10so8800544lfv.13 for ; Thu, 24 Jun 2021 01:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PUamTiYeSrPZwcU9PK/yjIT5c7m9qlzBucbgKEhKbfI=; b=AxNKkN9la8MId0HQHQP+yKh8TM22yyhTRT+CxtLdH8iO3Emq/Xytls3Xivt5ccWhuq 289S4Bax2F+s4RU3ao/iNJVUGo2f/zy3fJseuSb5NJh2uWQqSGVGRpH74nhi4bvolbND h6FMeAucJBugx/1MIlbGdUWnJ5I6c9PtwdtT7ryDVdPRsmxim1XJs40DJzSaX8XEnF5/ Vz1ookWV+TTOcfYc4O3G6Jdo0L0N9TH5egfcLHy7/F7Hpj46xZ4wLuJ9qY+Zw769TDxa 5SMlNzTOuC7jfelM45pOGaaR5K6tK8CGmFhtHmbU7JCso7C48UqAW2c0OgnZH1tAOG5E YMwg== 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=PUamTiYeSrPZwcU9PK/yjIT5c7m9qlzBucbgKEhKbfI=; b=aq0CHqoS4SXowsIctSIk5SjkZo3LltY4OkynSUvxQ3tJd3h4E6jt20s/QcV583Kr2s W9ZQg3i4MVBXy2FauvDIVWBvFFcmAFWBW/EMjR6JlDhaGm+71gGYasFWg98QzvMZGfO2 ns4ofC8QwyPozzpEkkn1G1avktfOWs6gyB8qgZmDskUZ55ezGj/C1f4gH/rBpSy742Ly 3bgQrA/Y3/UnMXld/PkPv+jZWyVd89ZkZice0zYl1q0wU737o2KtkJm9IesmTAzeN124 fCNK40yFYrStL/H7vkGFEcnb/iJTECHzQ9pOBz3yzuks0nqvihdP8vnoGjPeNV1l8VDe KSKA== X-Gm-Message-State: AOAM530DiR/eqtp+ICMJ+Vm1APaRywNrxmSrSctuhRJGvF2tBVx3fq/B sHrhcdp193oqbFcMX91LSmSvgDqMW8zCs3YiGWZYyLGY/SIs X-Google-Smtp-Source: ABdhPJzhHNJHSafU0c1e47WETC4nLVnalsZbFvGtaVx4kppM4KN53NOeQa78QrpMflLLQrNUCGVx0I8shpZ7fyrTiyQ= X-Received: by 2002:a05:6512:3749:: with SMTP id a9mr3126159lfs.110.1624523668343; Thu, 24 Jun 2021 01:34:28 -0700 (PDT) MIME-Version: 1.0 References: <03f7955c-69a8-4841-9245-449d7851e207@www.fastmail.com> <95D16F2E-E9DD-4964-A0E2-62E1FB0D976B@koalephant.com> In-Reply-To: Date: Thu, 24 Jun 2021 10:34:18 +0200 Message-ID: To: Scott Arciszewski Cc: php internals Content-Type: multipart/alternative; boundary="0000000000002e4df305c57ee427" Subject: Re: [PHP-DEV] [RFC] Name issue - is_literal/is_trusted From: guilliam.xavier@gmail.com (Guilliam Xavier) --0000000000002e4df305c57ee427 Content-Type: text/plain; charset="UTF-8" On Thu, Jun 24, 2021 at 9:14 AM Scott Arciszewski wrote: > On Thu, Jun 24, 2021 at 2:10 AM Stephen Reay > wrote: > > > I would absolutely make use of a function that tells me if the string > given is in fact from something controlled by the developer. But once that > same string can also include input from the request or the environment or > whatever by nature of integers, the function becomes useless for the stated > purpose. > > Why not two functions then? > > - is_noble_string() -- more restrictive > - is_noble() -- YOLO > I was going to ask basically the same [with different names] a few days ago ("why can't we have both?"), but then remembered https://externals.io/message/114835#114951 , esp. the end: """ And to support having 2 functions, we would need 2 flags on strings. These flags are limited, and managing 2 flags would affect performance. """ Regards, -- Guilliam Xavier --0000000000002e4df305c57ee427--