Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117083 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46360 invoked from network); 20 Feb 2022 22:35:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Feb 2022 22:35:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E6FAE180381 for ; Sun, 20 Feb 2022 15:55:00 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 ; Sun, 20 Feb 2022 15:55:00 -0800 (PST) Received: by mail-lj1-f182.google.com with SMTP id o6so12220843ljp.3 for ; Sun, 20 Feb 2022 15:55:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h7QbNn195TB7Besv8HhQfqwhCDEqvaLfSIIAvSGNSn8=; b=ABfB9awPT17hE2WNU4C6j5vDRbQisZwfJtSxS1AVlI4px0J7EoJz3diSrAbx9Uf/bQ H3wExlRcaoaZn0bnNkDB4iuLNZem8vuuw1im0e+aYc2Jf9DT5+d2YATdfCfVCN0OCLC+ QdbHA14avTwBz7JyTUXWqpYTK8Czf/bNlngsw= 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=h7QbNn195TB7Besv8HhQfqwhCDEqvaLfSIIAvSGNSn8=; b=wHfrhiI838UkroOvGe28+LLO4j0zWCTEMXlJdioawMudBxRWS3HSC3LiyrQwFo5y8s pnOJ2cu/rl9xpryji0t9x6Bb9xdLC4iUSQvUH02mI1FdSgktEX/SYDoV0X7g3xEPDlxG Wrf3GtiryCix06ivoIb+wYNXH05+TZsJxqvSCR9TYGH8OOaBBOrjQu1pQFTv5RwBD2nZ 6YgT9/3mtMcuJHZHF4S0O3dF0rk9mBPxdPNE7CCvgvEyHy/83iA7iI5hEOiPlJFTxCKz p79X5Gy3VAVRSshLeAV9fBoN2q2xm+ZJTzH2GF6HfYKbYtvQDhLwLuGByWfa61yeFTD5 yqgA== X-Gm-Message-State: AOAM530GsHUb9tDrwYd13OAo973vQPI0CzGhVHPycc1TwItA7ytbwz3G 5kviUHyNahvpyU6XgriJhg7zJOxkOoN9FBZ9qLwJAA== X-Google-Smtp-Source: ABdhPJyeYlEhUdbGQblwU6WbtC6aGEnax2QwqDxEmxXvGogq7b7lhCLt2dnLojtRK7jYPy0GkbPtFsiF+ztF/77uSi4= X-Received: by 2002:a05:651c:21a:b0:243:2154:a79a with SMTP id y26-20020a05651c021a00b002432154a79amr12811454ljn.212.1645401297506; Sun, 20 Feb 2022 15:54:57 -0800 (PST) MIME-Version: 1.0 References: <22242169-a16d-5261-696c-3cf00b00336a@gmail.com> <93e83a99-8f03-b823-1b4b-a10519d41dd7@gmail.com> In-Reply-To: <93e83a99-8f03-b823-1b4b-a10519d41dd7@gmail.com> Date: Sun, 20 Feb 2022 23:54:46 +0000 Message-ID: To: Rowan Tommins Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000d9e8a405d87bd7e7" Subject: Re: [PHP-DEV] [RFC] Deprecate and Remove utf8_encode and utf8_decode From: craig@craigfrancis.co.uk (Craig Francis) --000000000000d9e8a405d87bd7e7 Content-Type: text/plain; charset="UTF-8" On Sun, 20 Feb 2022 at 23:12, Rowan Tommins wrote: > I don't have hard facts to back it up, but my impression is that > ext/mbstring is quite commonly installed, and required by apps and > libraries. Unlike the other two, it has no system dependencies, because > the implementation is entirely in PHP's source tree. > Thanks for confirming those details Rowan. I'm just wondering, and this would not be necessary... considering how most systems need to deal with UTF-8 data today, could an argument be made for enabling etc/mbstring by default? I'm fairly sure Ubuntu and CentOS need to install the package `php-mbstring` separately; whereas my limited experience with cheep/shared hosting, they tend to have it enabled. Then `mb_convert_encoding()` could become the default suggested alternative, and everyone could trust functions like `mb_strlen()` are available as well. Just for my own interest - technically mbstring uses libmbfl, but that's already available from /ext/mbstring/libmbfl/ Craig --000000000000d9e8a405d87bd7e7--