Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness

From: Date: Wed, 17 Sep 2025 07:09:46 +0000
Subject: Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-128711@lists.php.net to get a copy of this message
Hi, > I'm not sure if “all formatting codes work the same” is still 100% > accurate (due to J and P), but “many differences” is definitely false. > I'm seeing the following differences: > > - J and P might or might not be different. > - e, E, g, and G don't exist in Perl (it would be d<, d>, f<, and f> > respectively; these format specifiers could be deprecated if this RFC > ships). > > Both w and W are already taken in Perl and would actually be a > difference. 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? — Alexandre Daubois

« previous php.internals (#128711) next »