Re: [PHP-DEV] pack() and unpack() 64 bit format codes

[email protected] (Leigh)
Newsgroups php.internals
Message-ID <CAPwsocF9nRGDuNZ7ACS7d3hi1Hj2LZnZtG9bQob-HnPPpe3eMw@mail.gmail.com>
On 9 September 2014 21:16, Andrea Faulds <[email protected]> wrote:
>
> Why is there no big/little-endian signed long long?
>

I suppose you could argue that these count

i - signed integer (machine dependent size and byte order)
I - unsigned integer (machine dependent size and byte order)

However they specify machine dependent size, and they do not increase
to 64 bit on the average 64 bit system (sizeof(int) remains at 4 when
sizeof(long) goes to 8 on my systems). It's obviously possible to add
signed variants, so I open the floor to the usual bikeshedding on what
letters should be used, but I'd prefer to stick to translating the
32bit _specific_ behaviour to 64 bit for now, such was the goal of the
PR.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.