Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness
| From: | Tim Düsterhus | Date: | Wed, 17 Sep 2025 08:29:57 +0000 |
| Subject: | Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128712@lists.php.net to get a copy of this message | ||
Hi
Am 2025-09-17 09:09, schrieb Alexandre Daubois:
I'm not sure to exactly understand what you mean. Do you propose to introduce < and > modifiers and deprecate some letters, if I get it right?I'm proposing to introduce the
< and > modifiers, following Perl's lead. This would then allow to deprecate e, E, g, and G in a future version and if / when that happens, PHP would be in sync with Perl again. I'm not proposing that the deprecation should happen at the same time, because folks should have at least one PHP version to migrate where the new logic is available, but the old is not yet deprecated.
Best regards
Tim Düsterhus