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

- Thread: https://externals.io/message/129956
- Original archive: https://news-web.php.net/php.internals/129956
- Started by Alexandre Daubois on 2026-01-30T09:51:48+00:00
- Messages: 4
- RFC: Add pack()/unpack() endianness modifiers for floating-point numbers (Implemented (PHP 8.6)) — https://externals.io/rfc/pack-unpack-float-endianness-modifier.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #129956 — Alexandre Daubois — 2026-01-30T09:51:48+00:00

URL: https://externals.io/message/129956#129956

Hello everyone,

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

Thanks!

— Alexandre Daubois

---

## #130038 — tim@bastelstu.be — 2026-02-06T20:23:56+00:00

URL: https://externals.io/message/129956#130038 · In reply to: #129956

Hi


> 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

---

## #130066 — Alexandre Daubois — 2026-02-10T09:31:45+00:00

URL: https://externals.io/message/129956#130066 · In reply to: #130038

Hi Tim,

Le ven. 6 févr. 2026 à 21:23, Tim Düsterhus <tim@bastelstu.be> a écrit :
> 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.

Thank you for this feedback, I just added the "Future Scope" section
with your suggestion. It makes sense to me as well.

— Alexandre Daubois

---

## #130133 — Alexandre Daubois — 2026-02-23T09:55:48+00:00

URL: https://externals.io/message/129956#130133 · In reply to: #129956

Hello everyone,

Le ven. 30 janv. 2026 à 10:51, Alexandre Daubois
<alex.daubois+php@gmail.com> a écrit :
> Here is the RFC: https://wiki.php.net/rfc/pack-unpack-float-endianness-modifier

Almost two weeks have passed since the last minor change made to the
RFC. I plan to open the vote this week if no one opposes it.

Thanks,

— Alexandre Daubois
