Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117081 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38537 invoked from network); 20 Feb 2022 20:05:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Feb 2022 20:05:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8407D1804C9 for ; Sun, 20 Feb 2022 13:24:32 -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_20,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-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 13:24:32 -0800 (PST) Received: by mail-lj1-f178.google.com with SMTP id u7so4412974ljk.13 for ; Sun, 20 Feb 2022 13:24:31 -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=9X1rHaMrSveX1ROnwIIeZh//BwmmBEUBpDNHFsg3zbw=; b=ZGbUvzPvY2TEMnCJzhO5BOzw+4W71AOn9G2HOcYfxKQNw+F4Xg12W8GCg5qXqqiVLx q9UoRWtx374TTxKjb5bPvTlXJpJ19e+yaxa2EzqJNkftojrsf+cZMkXuNv9hMaPODX8b zVUa27iWkinhdEJFxlonE0/D7CIKzWo5yCPyE= 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=9X1rHaMrSveX1ROnwIIeZh//BwmmBEUBpDNHFsg3zbw=; b=mZxyddQQPqGehFHjBmYdfCNR4Hxckfp82/Kw4Fs4KAZbAXUQUE9eZmXZJffMTeBjr3 vS/+TMbNAr/ZDtTyKxOJRgpUgZdvIigPAOYvTnvGZH6Hm01QTUv2RRd8pSA8lNXR4CAg AhOU/hYEK9l1vgUkOCeb3xqzK/FiBQBEhuZGXrcpf6j5V9J/3tM4C10H3szoz4qfKdRv 1U2LEVwVNtsP4bsUXFXSHyvq/wzo83fhz5K4OP0LeVrsg9kBkekN3idvVXX3p+6tCVyE feCPPsiaS1JFzJX1meBCjbBcV5X/HIsIMt4lcw8Db0jxd5SMkuIPyeuycIJScdssBmvJ Prlw== X-Gm-Message-State: AOAM530Yk0WoGOXvjDyiFQFbmWcxCfB2yV/YPo1h+BxHPziVGNmEEZZ2 YmB5SADquepIHM5hRiPANYPZWBTewBOkE0GWEhY11g== X-Google-Smtp-Source: ABdhPJyg/M891o9Umszuves5vqG4uDQlz8yHih1FvdsaXG3WUsALWSiA0psm3cgQYUKOSqlm9nS8jcSeX5t3ocmzRvQ= X-Received: by 2002:a2e:9844:0:b0:244:c274:10db with SMTP id e4-20020a2e9844000000b00244c27410dbmr12443792ljj.120.1645392270339; Sun, 20 Feb 2022 13:24:30 -0800 (PST) MIME-Version: 1.0 References: <22242169-a16d-5261-696c-3cf00b00336a@gmail.com> In-Reply-To: <22242169-a16d-5261-696c-3cf00b00336a@gmail.com> Date: Sun, 20 Feb 2022 21:24:19 +0000 Message-ID: To: Rowan Tommins Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000ca40d705d879bdb8" Subject: Re: [PHP-DEV] [RFC] Deprecate and Remove utf8_encode and utf8_decode From: craig@craigfrancis.co.uk (Craig Francis) --000000000000ca40d705d879bdb8 Content-Type: text/plain; charset="UTF-8" On Sun, 20 Feb 2022 at 18:55, Rowan Tommins wrote: > I would like to open discussion on an RFC to deprecate and later remove > the functions utf8_encode() and utf8_decode() > > https://wiki.php.net/rfc/remove_utf8_decode_and_utf8_encode > Thanks Rowan. Whenever I see these functions being used (including when I used them), it's been, as you note, "commonly misunderstood" - so I'd be happy to see the back of them. Only query I have is about the availability of different functions... not sure why, but the documentation says these are provided by the "xml" extension, even though it looks like they are in `./standard/string.c` (your pull request seems to correct this)... so I assume projects have used these functions on the basis that they are always available... I suppose you could argue that "iconv" is enabled by default, so that's hopefully reliable (even though it can be disabled with `--without-iconv`)... whereas "mbstring" and "intl" are non-default extensions. Craig --000000000000ca40d705d879bdb8--