Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116069 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96435 invoked from network); 17 Sep 2021 12:15:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Sep 2021 12:15:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 07B021804C9 for ; Fri, 17 Sep 2021 05:55:42 -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_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-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) (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 05:55:41 -0700 (PDT) Received: by mail-oo1-f47.google.com with SMTP id k18-20020a4abd92000000b002915ed21fb8so3153148oop.11 for ; Fri, 17 Sep 2021 05:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nxCLNccyg8BWhSKwkfC4peGbd7/n3QHfSk60wCxowIM=; b=j4AjlHmv2LC9saN86nYObzZj2toyrth4O5OYz78xnpzt1CFogns7bh9QUg7tzSauTD wHyfPrGdAC38S8Z5rXaN860v1/rpzqxehpY1nW2VYn2ZMvfl7yk9Y+AuedFdmzYYCPbq Ti1y+j6SWUgsuW1WuZxmwqa7WXQc24jDCEHCVnQFGZ8XCljruLcXbOcl0tdH40VZHYa5 dP2FK9XN+PnfuyE6SmPK0vOfFlgdV7liqk1Ukode9qHsB45hjVmikZqsLtOW2hYAlJaM Wma3f2kSOfi91aGJsvdQtmyMUM/BR+euCz6kHkP+iLv9cnd4e6hnppn/MnjdTm3Tfubi dYww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nxCLNccyg8BWhSKwkfC4peGbd7/n3QHfSk60wCxowIM=; b=gzp7RFE2zOMqHpBZu6Z0fiLmPbQGqWLkI/s0bYq+od21+MNSD/V4F7TNaSi3xM0PyP IKhxXl16dFfvbZk5beJ8LNklt3A1laWTFYbyaeGiJXqE1eCQe4wZGdLa5D0MFqCiZ2+L wtwAOvBoBh5gNTZHu5ngmAmUYHjHwJxqIIVKiJbzD4lrjNjlQU1R3tAX3knwYQQA+Vop jd8ONuuPpHd86c7uznU5TEIJNeitxXZMgTU6JHU5qchhrLrn5BqhNmouJh2Tm6SYdQDK kXIIlBgUvMSC+ZyFXhI9CdazDVKxMUWihsmVBWt2MMKxlXxr2pzffeoHxoXs0s6Wj7/V /dpA== X-Gm-Message-State: AOAM531bbTB+9di7biNAV9QmXZRmNU8P4RRqXsYZphMYWWR9BprTMYEW PHw94hbu9P5IlgKv5xeEhxkX/y1A4fxt0nAq4Qw= X-Google-Smtp-Source: ABdhPJzckioGCAl2hFQJtQfXZD0CyQxrTO7mcnwukG4jEbA/sgYOorlzfR/EXAB88H05EqC2qbIqxzr+8QGDRBMEJZU= X-Received: by 2002:a05:6820:253:: with SMTP id b19mr6115129ooe.28.1631883340900; Fri, 17 Sep 2021 05:55:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 17 Sep 2021 19:55:28 +0700 Message-ID: To: Tim Starling Cc: Kamil Tekiela , PHP internals Content-Type: multipart/alternative; boundary="000000000000d96c2505cc307248" Subject: Re: [PHP-DEV] Make strtolower/strtoupper just do ASCII From: pierre.php@gmail.com (Pierre Joye) --000000000000d96c2505cc307248 Content-Type: text/plain; charset="UTF-8" Hi Tim, hope you are well :) On Fri, Sep 17, 2021, 5:07 PM Tim Starling wrote: > > 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. > may I suggest a function rather than a ino setting? it has the advantage to be contextual and allows the user to enable/disable it before calling some library api they may not be able to(or don't want to) patch. str_use_locale(bool) f.e.? and at some point it can be false by default and later on removed. best, Pierre > --000000000000d96c2505cc307248--