Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127820 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 579941A00BC for ; Tue, 1 Jul 2025 11:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751367905; bh=TKjCOF7P/FlPV5J2keH6PDiPgCae0W/Vb19qn96HCuk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=ZrbR6SZe41GG4WHFavci7wWs8D/ZnFrQ9JEeW659LLU0ckW2isc3udchcylYXFhcP SLeaoPZZI2wNHso3MH3Jed1blaT5sylX7oVmvoCWoAtuEWtm+aZw4hY0ocZqDP/eAH croWf54sqjMae0eFbaqCC0bZMVTQnQQxq5/NTBW5ShfOfIjWU7y2cA+DRCnTNydkfx zrjy0/v84AbdP8zFfXjBNQ2IPCqMDzgZx8KdDpt/P8GXftUNMf1CRjgw9kOCm8/59G 1Ko3eIrsAKwgzI1Xi57KgWEJ4HKT60yFekJ6s/LK2Jgf+kgizKruoBzUK0Bvz4zs/T 2Ol5JoAaFtS8A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0CE96180054 for ; Tue, 1 Jul 2025 11:05:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 1 Jul 2025 11:05:04 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 4096DEC0511 for ; Tue, 1 Jul 2025 07:06:57 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Tue, 01 Jul 2025 07:06:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1751368017; x=1751454417; bh=TKjCOF7P/FlPV5J2keH6PDiPgCae0W/Vb19qn96HCuk=; b= JgoDquiXDLhARW2w9SOwvz/9g08qK8ZnFHxK1zoZsEhbdGxi4uEFHOHnPczPYnWJ jNUry3Rl8xJu5fVj+/vbCDvlM2UP8X5Pxhb3S+mHSPHdmvAF4sFEUj/MmR9DimnO FLFIH6fOnzc4UPhkJ7UbMcySNo1Mk1t88arwaXDwQJ+EALg6DzqnhicTLg3lRVNQ A4mgUEKh9wg6tYDd/CkGP1unGaXskW7xpWDuzdcrdAG0WNtTADq1JzaZkxaV0oYC ZHTtGPKfu7G2ZAxybDAcpok7qzFjN20QS6xD1bJUvrRzVsc4Blkz7j2UHEoq4O76 T4t+7PQetc5PpaHoKz1gfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1751368017; x=1751454417; bh=T KjCOF7P/FlPV5J2keH6PDiPgCae0W/Vb19qn96HCuk=; b=TCTuQj5XY8txmyH03 BpnsHvFCDR20ZX5AkIII2h3CZZcBm2fVeIuM+/VZSVN2ONnvF7/ewzl7PkCPaLK+ tHxWQMoL/e8P7ZpqWZMVopkiHZo0NeHNRcVSn5pisSV0bPpdObbDHENiyQMmwKM1 oD8wHqBqr2NWjv7O2S0sQx+vQg66pkVrNdPaqcTuCti3MzQBumI5Hs21Nq3cnjnv KSrfEmABrm+Ny51cTBp2095RIrpMffgV25TYSprZxO9IZfl6LbiMstQf2su/GgCo 2pyXiffeDX9tlrvy50spUXbpK8oNrxq9PU012ZTS6yIxRKjGkSmA3TEx7LJz4thm Zsvtw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddugeefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvufgfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigrnhcu vfhomhhmihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtoh druhhkqeenucggtffrrghtthgvrhhnpeelvdeuhedtheduudelfefhgfejhfffvdeljeef gfeuiefgiefgvdehhfefuedvvdenucffohhmrghinhepphhhphdrnhgvthenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprdhphhhp sehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 1 Jul 2025 07:06:56 -0400 (EDT) Date: Tue, 01 Jul 2025 12:06:54 +0100 To: PHP Internals List Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D=5BDISCUSSION=5D_Add_?= =?US-ASCII?Q?RFC_4648_compliant_data_encoding_API?= User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <348856E5-6A4E-455A-81AE-882832170168@rwec.co.uk> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 19 June 2025 12:01:04 BST, ignace nyamagana butera wrote: >RFC proposal link: https://wiki=2Ephp=2Enet/rfc/data_encoding_api Thanks for working on this, I have often had to implement base64url and be= en frustrated it's not just a built-in option=2E I like the look of the new API=2E Using namespaced enums is currently quit= e verbose, but that's something we could try to fix at at the language leve= l - e=2Eg=2E Swift has some nice inference rules, so you can write the equi= valent of base64_encode($string, ::UrlSafe)=2E One thing I think the RFC should mention is the future of the existing bas= e64_encode/decode functions=2E Am I right in thinking that with one paramet= er, the new namespaced versions will be identical to the old? If so, we hav= e the option to make the existing functions aliases for the new=2E Or, we c= an leave them as-is, but plan to deprecate them=2E What we probably don't w= ant is to indefinitely have two versions with such similar names but differ= ent signatures=2E Rowan Tommins [IMSoP]