Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129194 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 2F9751A00BC for ; Tue, 11 Nov 2025 10:14:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762856086; bh=nmj3ml4hPsKyauRZnAAo2qdtLyxczSm5Rp5/H2OzWDE=; h=References:In-Reply-To:From:Date:Subject:To:From; b=mrc9XWpt8SNoFOhNa6kfStT+JWT0q1KoCFALjozFelRRRTxxJs3HLt9iHhf3WgVa8 ecwXcJZP+dE2iTZ1qTFEKhsNBF27bSbSqdGDlj0uuUB/Nff0tIbxPI0ndtWPQeKxt3 Wd3fzaXi79BntV8KekxyaFjyjac2jqp95hmTo9f6qa9+Rhjm0iif0i310D7S1L3049 NTOJJgJD5HzxbEo/T6Ki/95rd+rOuWFZtdHVNg5UFI0ZbYje/dl51Qb8xAT3ODIfth IbMvYv8c/6tSvncG8pe/KtGwWesXvwaTVU7bvNxLBZK5x9WoC6gDZHFzQPF86yRp1+ dAMw48cQg11SA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D940E180078 for ; Tue, 11 Nov 2025 10:14:45 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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, 11 Nov 2025 10:14:42 +0000 (UTC) Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-43470d98f77so138065ab.2 for ; Tue, 11 Nov 2025 02:14:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762856077; x=1763460877; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=0E2uhDfI+pGiZW/ykdiNczZKBsAbevMpYjoMGac+QTc=; b=NrAcwdHmxlG7tDU1BH/aAnW4D/hgYgfE7gY/g2cUGnfULFBLU7LMFX25cMPUlZbvG3 sHclpObW5WDGBGFTl53Y1CtPkhoxjR00yCmzhNoNc1Vu9CS6RJAS9W2HP8T9tJh73NY5 rL3ngCb391ovTtwiib5aFlcX6qyi7i2rwqQaE4iMuWcFBUUm0SRbpPxHG04fsWMN3ZoA 1ml17mS8/iDLa8QDhMOg3P7lT81XSsZCcer+whVPXF9ATJEwCQZNispSbb4oUaMjdtrZ bibGMJ0JcUZTf99k/99tWs/qPBHi0qM+H2cyPshcxSAKr8H7GSCMH06IJsBjt9McSrBk msAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762856077; x=1763460877; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0E2uhDfI+pGiZW/ykdiNczZKBsAbevMpYjoMGac+QTc=; b=bIl82poIYV/l8MbQAryTGaN/HsSm80sluNe9yolVbl7Jt50PiVaFwzjXpQpxSlFNSQ dTouap2+lfqVM9jdFXeIu97T1R/FCIuAFmM/zHWnptpILRoHoB+v1qjpqQiDZaX4yntD hnrbDEflamqltWxzojshGph7bUZuzIJ4IQAZPEYjF3QSgM0+uZVVJ2pYeHmPMtL1zm8U eFW+dUThb6rHpjSJWIrAQbadxdEtNOjinjzeQ1DIkZIkW4U9LMewMbuYJn0k3pLow85S mqXCzu+eDsoB6cVEXI2+Ecb2Vzj1LxNIGBgI1Lmhq5E3/f1bMJuRrNvG2LUqcPdwUkcE PHpw== X-Forwarded-Encrypted: i=1; AJvYcCW+IfULeFMcv4XzpaWIFaVBLlULsIHiRrXUqcYd+QBh+ylN4Fu7YYvi06qEjN8f86ewDWIpq8mxVew=@lists.php.net X-Gm-Message-State: AOJu0YxOS8Rkwq/IxZM+xxadmR0pFJ8K2a1SX2Lbn6YoP8yc7r2Cwv3L Ps+A6MyYOtbO/VxUUCC3ScznGHsA+Bty1o9HgTCfKf3GkpiC/r1LBx2fNAUR4zuketdHvzL2r7y +/ExxAWQrRbxQ+vZXPaEzfV8jxRxo1UATjyMQ X-Gm-Gg: ASbGnctO8Raf1ZVANEs8VHzN7GwH6jwum1khRAD9KbtaZsAc7ISVpRoKRKbK/yOHyij eU9lTpht9/d0UUaXrQsiudBi5TW3F/bgL95vnaNFUUMATANry0ZndUaFHoxwvtKLucr95vpXElx 9RpOO1lruay3V3SsAEG1q+0KYtiBdSheL/3XvaKpRLFUzKy9TwybVaGEyZMFUJ/yIFGLc/96iEG Vn9gKFMSV59hfwcPHDVPY8vWEk42Erkz1Doz9x+BrYSrepHocKGn6i4BOHDH7/0ZECAgwlD3k/3 bNCJ47SJfTUWYuD1Okk= X-Google-Smtp-Source: AGHT+IFH+I2aR7MeUfC3FV8T3RmZeVkg19OmQYHJfJ1SoshMomyix9vcm1nNHoZKuY1H1Xq8hUn98Dck0hsZV8H10TA= X-Received: by 2002:a05:6e02:3d82:b0:433:51fd:4cda with SMTP id e9e14a558f8ab-43367e65ca8mr158325765ab.25.1762856076820; Tue, 11 Nov 2025 02:14:36 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <348856E5-6A4E-455A-81AE-882832170168@rwec.co.uk> <38e57171-fc2e-4d79-8614-0b1c5a2efc72@app.fastmail.com> In-Reply-To: Date: Tue, 11 Nov 2025 11:14:25 +0100 X-Gm-Features: AWmQ_bn__BmxEwAmLZQfv4mneJlmJ4_dIP6CRHphUhpfhOUDv195tkASLaSBAFE Message-ID: Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Add RFC 4648 compliant data encoding API To: Andrey Andreev , PHP Internals List Content-Type: multipart/alternative; boundary="0000000000003fc6e406434eea42" From: nyamsprod@gmail.com (ignace nyamagana butera) --0000000000003fc6e406434eea42 Content-Type: text/plain; charset="UTF-8" Hi all, Since my last reply I have updated the RFC: - RFC Text: https://wiki.php.net/rfc/data_encoding_api - Discussion Thread: https://news-web.php.net/php.internals/128069 The main changes are: - I added functions for base58 and base85 encoding; - For completeness, I introduced an error marker class (as per PHP policies ) and a specific exception to handle potential encoding errors; - I added examples to better explain the expected behaviours during string process; - I have updated the migration path from the current/legacy API to the newly proposed API; Best regards, Ignace > --0000000000003fc6e406434eea42 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

Since my last = reply I have updated the RFC:
The main changes are:
  • I added functions fo= r base58 and base85 encoding;
  • For completeness, I introduced an err= or marker class (as per=C2=A0PHP policies)=C2=A0= =C2=A0and a specific exception to handle potential encoding errors;
  • I added examples to better explain the expected behaviours during string p= rocess;
  • I have updated the migration path from the current/legacy A= PI to the newly proposed API;
Best regards,
I= gnace
--0000000000003fc6e406434eea42--