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

From: Date: Wed, 24 Sep 2025 07:28:07 +0000
Subject: Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-128721@lists.php.net to get a copy of this message
Hi,

> 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.

That would be an interesting addition. Given that only those 4 have
diverged from Perl, that could be great to sync them again. Let's wait
for other inputs to see if someone agrees with the idea before
potentially revamping the RFC. I personally like it.

— Alexandre Daubois


Thread (33 messages)

« previous php.internals (#128721) next »