Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116065 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81017 invoked from network); 17 Sep 2021 09:27:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Sep 2021 09:27:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 234A31804C9 for ; Fri, 17 Sep 2021 03:07:39 -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=-3.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) (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, 17 Sep 2021 03:07:38 -0700 (PDT) Received: by mail-pg1-f174.google.com with SMTP id u18so9231327pgf.0 for ; Fri, 17 Sep 2021 03:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wikimedia.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=q4Fxai8zMYrcKSVMR6Tdf5M+3QkLdoria8rmMh41+q8=; b=FHwIQQED9zkvOxhfx/e29EPCZ9kJzF8t4ygfUE2vluB7uikcOj2iJjxv7tZKxoWikX LGatjfhAAAsPwB5JuVeZp1Lb94LTp/uCKypGlyd3FkFo12yP3+80RoT1hpYw2RZhfXSr htSFKlTuBzlRzl9QYbY0+YqvooDuLt6lVxxy4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=q4Fxai8zMYrcKSVMR6Tdf5M+3QkLdoria8rmMh41+q8=; b=NV01yDZbMY92Vkdcffuy6Fiz8NCDbIVnA4NdnJrQdN1/qgx/X08ZK1ieEuugDX3h3g LnFm3I7Wv1CxM5NTjn08s1x1WeiohP052QPIggzu5BGMTU7d4FNm5cZ9JtvJGmgBx68U PeQ1tyuBgcaR7LY4m9hNBUxZmIJqPnic+xyQYyUEEDmT/63SZfVSQvWB5wZhBGog2hzY 4RnznxoGtZd7LwhK6w77B9Q569ZH+UcRLUcskbP6PDzvQe5SjuYUAMa32OAIGv5942T8 UrwsSOYrossZMFivWfhwr3eDUnfBxEursazRgYr6Z+ZAkUqTPK9aAt0LzvaP+Q5IFCPR QaAg== X-Gm-Message-State: AOAM531iWnd7M5Yz120MMf5y0BioF1DLwjG/vG9ndptANJt3voD+zStj YPqEAySKXIIa56DIqan3HC47xFfKYrkC9w== X-Google-Smtp-Source: ABdhPJzddRskmcBFlrnrS1BNGqu2+z0g7jGxZ8iK7CVOzozTBGv3xz9quXOx0anycP/WerlUdnXYng== X-Received: by 2002:a62:1e42:0:b0:442:2a4b:e0e1 with SMTP id e63-20020a621e42000000b004422a4be0e1mr7151722pfe.19.1631873254245; Fri, 17 Sep 2021 03:07:34 -0700 (PDT) Received: from [10.1.1.45] (124-168-141-168.dyn.iinet.net.au. [124.168.141.168]) by smtp.gmail.com with ESMTPSA id x19sm5851406pfa.104.2021.09.17.03.07.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Sep 2021 03:07:33 -0700 (PDT) To: Kamil Tekiela , "internals@lists.php.net" References: Message-ID: Date: Fri, 17 Sep 2021 20:07:30 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Make strtolower/strtoupper just do ASCII From: tstarling@wikimedia.org (Tim Starling) On 17/9/21 7:15 pm, Kamil Tekiela wrote: > +1 from me. I wasn't even aware that these functions are > locale-dependent until recently. I see an added benefit that we could > add them to the optimizer once they are no longer locale-dependent.  > What would happen to users who really need the locale-dependent > functions? Do we offer some workarounds? We could add a global mode, although that would prevent constant propagation, if that's what you mean by adding them to the optimizer. Or we could add variant functions like locale_strtolower() and locale_strtoupper(). But I think I would want to hear from someone who uses locale-dependence so I can understand what their needs are. I guess the RFC will sort that out. -- Tim Starling