Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129018 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 842F61A00BC for ; Fri, 31 Oct 2025 09:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761902984; bh=nxUH0WWTGmyzYrlQ92WY1ZlSRLyufnEUJ4H8f0XwuBU=; h=References:In-Reply-To:From:Date:Subject:To:From; b=JO/O3ujKYHwoFzCdS+7sxVDcGPe907cxaSADjvSXRws0ZIeMJzfziqNGPVUZrlm0J ODP9grhmdMBInfCQX8GQLbjq1G8N6nqsCZCl5ItrUDK3v63JFjod8XiUmRTnJit6bh zLv7TxGslrxTt4m+6KioQHMMaSlUBohC9Ue/Q109Pr8pNR2HBw7fAo7E7ZBUlAEgF2 WZ5wETOIyJ6lPc3mulzklJ2yihtmxvCU/mSKPxTPXiLoLTouestao+dyqKUEY7mgBf i5vztRGVJZ5IK7iOGjNKjm66e0F/F4Q1txKLawWlWGGVqfhlWhUSRC7eDoTZPOYInD Obl8LEW7ZMU/Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6263A180050 for ; Fri, 31 Oct 2025 09:29:43 +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, 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-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 ; Fri, 31 Oct 2025 09:29:43 +0000 (UTC) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-63e076e24f2so3859605a12.3 for ; Fri, 31 Oct 2025 02:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761902976; x=1762507776; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nxUH0WWTGmyzYrlQ92WY1ZlSRLyufnEUJ4H8f0XwuBU=; b=YYkN+CsbXVS/gR7FjAyomDtZuiwmhMG9EkgjTpW+4dsnkhyynN9jZjMYENcnlQCRLi fB0N1RPa5lSbNlxL+2yrb2T/jTZFxzgG/QccazNP7b+LNiEIbLD75nhO+K1N+irwPjL+ +jaKCzeJOIeMkUPff5XYIfEckqq4MP0tEJ5edN9v/WPLIk0q2zEJievzlRCj8XR0t0fH fdOuG8oN2XhDaHHzLkoUYcHz139se58/eF4+v3xbOH5YW/XesPxOdGt6hWOSDbDBgV6e ceCW/DDW/Osi2ffftBCqbyug1LDOLtOS0VaMRLuDjpEuGoSRJrD8Yp712+lhiAzgE+L1 f+hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761902976; x=1762507776; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nxUH0WWTGmyzYrlQ92WY1ZlSRLyufnEUJ4H8f0XwuBU=; b=sJ/Wr8eyBDnAwhLjXz26D47V/SWXqG6CPmPh7BS0Za4LG7W4IM2ZnKNlYdeTsQypr+ svL44LE+Nk1L3YzOr/6lJ7kdCRoVfLg01v3EY6kbWIsh8FVWfU4ayyX2j+k5DyeiYyPI nndCXQnBOqogrMTHtOlsk6F/EwWFsjK78ac/Ea7m6s3bwYwej2sfm70GG4yfxyLAapPi uau7cxRq+e6RU71Ali5JUipiHZ1XifsS6GmEoCvDknJ0dfS66eXRu7sSrrAOsLVR0+YT QgXzapoY0/vn+CoCs+lCsHR1OO3sykAa1md2rwkpO2gMzJaA7eB38YIjDNYCOei338Bc xgQg== X-Gm-Message-State: AOJu0Yyj1MihwzwQsJLG42X6Cw6PB0QKH4TjUluk7z0s2nabRHMbAKTf HYmAZSvKKLtjcDFQzn9y8LpGWAM2zd7qOjpYB+ymZy9YUTbm0A58GDIg5SrCehlc5Rn6yFLnkpd HpVKFaLvn2O5U5ok9dGZ8yW3TCoMEC8dUTLvQ X-Gm-Gg: ASbGnctsq9gFc6uDEMO2QHApvQfg37N12lPQQKLxHgCxTdsYvrc/eF/ysOE3plGS/vY 4+hC3Sj14AbDrhqyS8HzAQyR+t+RaXROBVjTfk/iqYJBv39OZ2J+WlhG/nCzJrfcKIshsjhsg+O xLhP8WEI4bY0AvvGDf9PYlAfhilPHZvuXRJGmsz5vLeOr8F4FJMCfHSjFZbGsOtRAsygc0npxj6 hjso7CwWi7AqSN0Z0meJHoF/lyL8H0CoQKwfkkKe9XztTxfyjkGRuzG7OWDKr6W4kx22kJYozeH zIe5tn+f1eueFA== X-Google-Smtp-Source: AGHT+IHIC5Xu+TzFVasjOm9B91fzVo0hZQ+nrL/+FKEh+7qmkH61TFLxUEgm962/b5QtJyzUiafRUtEmbT+UoSKu/ck= X-Received: by 2002:a05:6402:51cf:b0:63c:45fc:7dda with SMTP id 4fb4d7f45d1cf-640770bc399mr2207056a12.20.1761902976212; Fri, 31 Oct 2025 02:29:36 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 31 Oct 2025 10:29:20 +0100 X-Gm-Features: AWmQ_bnT1QJCkTydsPpop22OTR2DjEp4qgEux4iLn9A0MQ4LuO-KPaxUFQbN1bk Message-ID: Subject: [PHP-DEV] Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness To: PHP internals list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: alex.daubois+php@gmail.com (Alexandre Daubois) Hi folks, > I=E2=80=99d like to present this new RFC. When discussing the issue, we f= irst thought that the RFC process wasn=E2=80=99t necessary. However, discus= sions on the PR showed that selecting new letters for pack and unpack is mo= re challenging than we initially thought, thus creating an RFC for this cha= nge. > > Here is the link to the RFC: https://wiki.php.net/rfc/pack-unpack-endiann= ess-signed-integers-support I'm getting back to this RFC. Here's the current status: it's been proposed to implement Perl modifiers to pack/unpack. I think this is a bit overkill in this case, as this RFC proposes to add the very last missing formats to the two functions. Once these new formats are added, the list is complete. If no concerns are raised in the next few days, I'll open this RFC to the vote in its current state. Thanks, =E2=80=94 Alexandre Daubois