Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117411 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89846 invoked from network); 24 Mar 2022 08:06:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Mar 2022 08:06:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4FD1B180507 for ; Thu, 24 Mar 2022 02:33:03 -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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 Mar 2022 02:33:02 -0700 (PDT) Received: by mail-wm1-f49.google.com with SMTP id h16so2350876wmd.0 for ; Thu, 24 Mar 2022 02:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=rLzYQmO1tHir0dV9nTx3DH8R+xHrIdjtOokHg2AbZYw=; b=M7VGyfdOzxAXzuGjhdTNkbco7SbDVci1LwtLsllANIJlKxoxm86WXl4vqRZh01Pb8v or70vsnAcH4RxiF0xQ9Fw9V7ALjjeVT0QyKGMiftvHGlC3kLFMPb2BFw/BrWoxjZhzt4 cccZFkvIdZZk5zZRTra/uKHYkZK50psUEG23dceb7XS3FQr8w6BcCvqahmnX1+LAHbDW mJEQX7wFFf6eD6895I+8I0Q01BnfIfDLAL/5icfrlO0kVjqxXyw5d6FxNddhylqm3ezL 0YusYjZLC1i3CuJmaelSlQVir656pvHV8QGxW5zfnAn0V38/xIABM2GiSZPcV48QDaG0 kVQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=rLzYQmO1tHir0dV9nTx3DH8R+xHrIdjtOokHg2AbZYw=; b=1E5W1I4uRbQfAEp68tecqwIk6SjNqRVcbHHfwlOWua/3OljraYU8p2cDjyMHUlJSoC QWMTklrHeDZDOs9uBcg6xecv2cAHAUH1830O7Hg5fN8dYf7GfZzrlx5w+E/s5X9UIk4G KzuIAbhL8Mrv3ntW7OBUQJz4SJR9gGOsUuaSjjkwfzZxjCtwbzAWSle66qzulblmQ1Ft LKUOXXs5CjWoZpuUN56asUT5csWD0TQQsthWO940qO6tkC8eZQBdpg57BsoAjXUi21dq +OdaKv6Rd1xTTvO4s2qQQNAo59b2RRjNN04PjbNAjSsgkY+MJ0m4qqfqBehPFWz4TGf+ BVrA== X-Gm-Message-State: AOAM531gAgHaHtLcKxWg0IjvBYlBV2G+FqckRIGjcF76N6x8UW4RovCM BeGqJB7Ryt9LTIfF1oGyrUoMWPpkqqo= X-Google-Smtp-Source: ABdhPJy53bU5bh8UUIZYnlvsWtBwknRr6nlYKRh6mgA/r69j36HFThWUKRG1VpLJ8avtGmdEMMK1gQ== X-Received: by 2002:a05:600c:ac5:b0:38c:9a51:3059 with SMTP id c5-20020a05600c0ac500b0038c9a513059mr3972573wmr.2.1648114381450; Thu, 24 Mar 2022 02:33:01 -0700 (PDT) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id o4-20020a5d6484000000b002057ad822d4sm2386590wri.48.2022.03.24.02.33.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Mar 2022 02:33:01 -0700 (PDT) Message-ID: Date: Thu, 24 Mar 2022 09:32:59 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-GB To: internals@lists.php.net References: <22242169-a16d-5261-696c-3cf00b00336a@gmail.com> <0b322a3e-469a-7ed7-16e3-0b76287f4091@gmail.com> <623BAFB6.4000901@adviesenzo.nl> In-Reply-To: <623BAFB6.4000901@adviesenzo.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [PHP-DEV] Re: [RFC] Deprecate and Remove utf8_encode and utf8_decode From: rowan.collins@gmail.com (Rowan Tommins) On 23/03/2022 23:39, Juliette Reinders Folmer wrote: > > While I agree the functions are often used incorrectly, what worries > me about this RFC is that the only viable alternatives for these > functions are in two optional extensions, which in practice will mean > lots of projects will need to start polyfilling the old functions > and/or start including a polyfill for one of the extensions, as they > can not rely on those optional extensions being turned on. > While I certainly understand this concern, the more I look into it, the less worried I am, because so many projects already require the mbstring extension. The list includes projects like PHPUnit, Laravel, Drupal, and phpBB. A lot of others will probably detect it at run-time, and disable certain functionality - WooCommerce lists it as required only for non-English sites, for instance. There probably is a case for making mbstring always-on rather than optional, but that perhaps requires a bigger discussion around what a "minimum" PHP should include. Why is XML support not always enabled, for instance? If these functions were proposed today, under better names but the same feature set, I don't think mbstring being optional would be accepted as reasoning for adding them to core. So the only reason to keep them is if they're widely (and successfully) used, which I've not found evidence for. Regards, -- Rowan Tommins [IMSoP]