Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness
| From: | Alexandre Daubois | Date: | Mon, 29 Sep 2025 06:53:11 +0000 |
| Subject: | Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128737@lists.php.net to get a copy of this message | ||
Hi,
> I’d like to present this new RFC. When discussing the issue, we first thought that the RFC
> process wasn’t necessary. However, discussions on the PR showed that selecting new letters for
> pack and unpack is more challenging than we initially thought, thus creating an RFC for this change.
>
> Here is the link to the RFC:
> https://wiki.php.net/rfc/pack-unpack-endianness-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 “0 + $var” seem sufficient.
Thanks to everyone who participated in the discussion!
— Alexandre Daubois