Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77121 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65225 invoked from network); 9 Sep 2014 21:26:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2014 21:26:08 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:53748] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/56-08634-E607F045 for ; Tue, 09 Sep 2014 17:26:07 -0400 Received: by mail-wi0-f180.google.com with SMTP id bs8so58564wib.13 for ; Tue, 09 Sep 2014 14:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yq/4pWcKPWYzVzkRxefgpJwLQjsl7rNsMKBJL9pOASo=; b=Z1cghPYnUSwg25wC3KQAbbIKZBVJ/tKSh2AWnZWVS62P9uFmgivrVtZH6eJ3MJ9sHM CIeKrAzy2Lxx9FlHVyRKuBiizQJ/U93iOT9Kt+NfRMcg1k1PLMdkQbSSzalZOj9q/60e /S3/aJMFtq/LlltJQF8l9cD7mXcr/PBoNquLmEvzh+Xv73BG0t6M7i+L4+R3EktT8LYG Czd441OMA9boczc9NmObtcfhm+z1gDOI+Yvz6AYrR740zJLnY/TRUozaSJr3F5YQNglL HiDUQyGQa8smjEiVQ2AiBJrmY/kDYXHZ+USKzJnYFlygFyM6UrZW3ETGvcDftoFE9QqF u4iA== MIME-Version: 1.0 X-Received: by 10.194.122.169 with SMTP id lt9mr45729450wjb.29.1410297963619; Tue, 09 Sep 2014 14:26:03 -0700 (PDT) Received: by 10.217.45.135 with HTTP; Tue, 9 Sep 2014 14:26:03 -0700 (PDT) In-Reply-To: <7E2B341D-F0BD-4E3A-BE41-FCD5539EC8D3@ajf.me> References: <7E2B341D-F0BD-4E3A-BE41-FCD5539EC8D3@ajf.me> Date: Tue, 9 Sep 2014 22:26:03 +0100 Message-ID: To: Andrea Faulds Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] pack() and unpack() 64 bit format codes From: leight@gmail.com (Leigh) On 9 September 2014 21:16, Andrea Faulds 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.