Re: [RFC] Add pack()/unpack() endianness modifiers for floating-point numbers

From: Date: Fri, 06 Feb 2026 20:23:56 +0000
Subject: Re: [RFC] Add pack()/unpack() endianness modifiers for floating-point numbers
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-130038@lists.php.net to get a copy of this message
Hi On 1/30/26 10:51, Alexandre Daubois wrote:
Following the recent successful vote of the RFC adding the support for endianness modifiers on integers, I'd like to present the natural continuation of it. It will complete the support of endianness modifiers across relevant format letters of pack()/unpack(). Here is the RFC: https://wiki.php.net/rfc/pack-unpack-float-endianness-modifier
Thank you for the RFC. This sounds like a straight-forward follow-up for the previous RFC. The only comment I have would be that it would make sense to list deprecating g, G, e, and E as a Future Scope option to further align the behavior with Perl, which doesn't support g, G, e, E. It is not necessary or expected that everything from Future Scope is done, it is just a list of things that would be possible as a follow-up, deferring figuring out the details to a later point. Best regards Tim Düsterhus

« previous php.internals (#130038) next »