On Tue, Sep 16, 2025, at 13:45, Alexandre Daubois wrote: > Hello Internals, > > > 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 > > Best, > Alexandre Daubois
Hi Alexandre, Thank you for your work on this. Of all the RFCs I've seen in awhile, this one is one that I'm most excited to see after writing a protobuf implementation. If there is one thing I would be over the moon for, it would be for also adding zigzag encoding as a possible signed integer encoding (maybe using Z/z as the letter)? It is more efficient for signed integers (vs. twos-complement) where a variable length integer is desired. I can understand if this is out of scope, but I thought I'd ask. — Rob
