Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128737 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 F044D1A00BC for ; Mon, 29 Sep 2025 06:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1759128728; bh=YNZK0FGOfJHqu7fjF1aEQNu8ic3sSBimirwE5opRDJc=; h=References:In-Reply-To:From:Date:Subject:To:From; b=SPipw8zb8Nu2sw8h5jN+Mdvxg8zk7MNQZwpNvUrMO/tmA3igoC/clzhjNKZbcNITA xSSNpebPQ4K7aTct/5NqdNzkvgdLZCXd/rXKsfQWmMVFdRSNXiLInc3v8GI9xajLZZ fZN18wu0Ls+ctYzpOUb+LTqZBbbd19G2NQAWNIQANzSUXx7EnT4dKI3KwdW+3UoxeK sSqjinKDeKkITUWKJUfVw1tTeh0+dfq9YE06YxMN4JBQmW9XzjMiMhSXX3AdWUvBjj pdv5j9kh7gFmokqwtpIkUg6HWHpWFGtp8rPNMzYgDmeUoBd6cZ47bvWS6gtDphLPbY lBjKvki7BUH2w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DB99318007D for ; Mon, 29 Sep 2025 06:52:04 +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,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 ; Mon, 29 Sep 2025 06:52:04 +0000 (UTC) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-61feb87fe26so6066624a12.1 for ; Sun, 28 Sep 2025 23:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759128803; x=1759733603; 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=YNZK0FGOfJHqu7fjF1aEQNu8ic3sSBimirwE5opRDJc=; b=X2WgYRYC2Fp+d/LRdNfTA0MgBsKIhyXgso9Nzj4B0bf6hOcDOWG6UckjjAGX4ysBWT C/cOTQiy/IEJQ/o+trkX/cZzEId0O6dzCwEpYo+ZXT7QOUVaKJGPVWTMBT7vfHuTfEkQ NH3+84U9AQ3+0d3CmPcs8En8QwWRzsb/PGN4PowbLFcRoGBexHk8Cf+Ffjs7Abm3Hzws YGb4Ln3TPGpE3OX0W2tKgGpHTsSaYdfoynNB9OiDaOdQLyZs5tt10oyASxQJIRfzWZdq Tme1o8b6vWOxdMTSef6nlVrwMA62CJVZ9iQAffPdykvmojb1tWdggIVEu5f0FxoMppEa tZGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759128803; x=1759733603; 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=YNZK0FGOfJHqu7fjF1aEQNu8ic3sSBimirwE5opRDJc=; b=SQ9TeSd/W60FCOeWjt5ddosLE5SkHy0BRGnko1VstwAEpcOsvmuSlECklnb04m7PdI j+e4ZtAc37Uagb5hWkUQF0S5O5lXUEWmpXA6R61qFn/65brxrZr00CAE19zcQWBVksoS A7Gd75Hps9n4QS0/tt7kCVrOc/mFvVqWjnp23Hv6nZ+mMpUkmVBv5O1TEuyxk89SV/2T o+ke/N+J2kJv7/y0T+vy6nmO0GnuFXeQ/n2P7cJyc5/zYGDrbE+3PTAeT51P2RVjkv82 v4PpDY7a6t2sXXdrH4MBaX/wxlpD3JvgkkqlHSGpapI9RaM63sd1pZhz5tXzozQVv1PI spwQ== X-Gm-Message-State: AOJu0Yyo2v8nPT4d0qUf4uAmfok33hFROODO1Mk0B9tZ42X71PcHP3q5 EOUHKDArPKI9HsuInYMik5Ow7abyNyxOb+yhbXRVTeI3lUFLFw7GBGoWUSjT5qZGbb2rP0nVxNR F/YMU9fdk4oIt7Mh77jABVkm+cwmoo7j4DMbn X-Gm-Gg: ASbGncsqnvcZGZOgOh8k6mWDWGga9MYIRQytfzbDvTB5K0E5dC7QgLqglHuirZB0/wV BxV7r7hmrPdok759A2iTHavIs6NS6EbkH8Cw4OgPuZHV6ab6Z3HQ0cZJhocfQylphG3d/RHZFlh m1pmLM8CweiDpIhGJZF5SrsqyfVifFGKaJ4BUD+k/glJegoxteRmLRba7myvsNYpKPpJW8lryPX uD1Fh4F11b2PZMvzJ0jUkneSQkAfPyOqi12ini3 X-Google-Smtp-Source: AGHT+IEUY9iDMVFYT55V2LPEoBaufE1klE9pzw9fdlw4z4RcIX5KIKOXwUagBh/gUFXrxQ6Dyu0br7ema0/ar/oQzYY= X-Received: by 2002:a05:6402:519:b0:633:8787:607b with SMTP id 4fb4d7f45d1cf-6349fa1c889mr11207403a12.12.1759128802814; Sun, 28 Sep 2025 23:53:22 -0700 (PDT) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 29 Sep 2025 08:53:11 +0200 X-Gm-Features: AS18NWC8O9zQn_ZUF8XRAh6EVs3OYfHFJwnsPKDJJZyGzycAFhnn8WFkv64wUUk 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, > 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 After the discussions about this RFC as well as taking a step back for a couple of weeks, I'm withdrawing the RFC. I think the initial idea is good, but ultimately its usefulness seems too limited to me as well, and methods such as the one Nicolas mentions with =E2=80=9C0 + $var=E2=80=9D seem sufficient. Thanks to everyone who participated in the discussion! =E2=80=94 Alexandre Daubois