Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74398 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53317 invoked from network); 21 May 2014 05:46:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2014 05:46:49 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.50 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.50 mail-la0-f50.google.com Received: from [209.85.215.50] ([209.85.215.50:60008] helo=mail-la0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/B3-24198-6CD3C735 for ; Wed, 21 May 2014 01:46:48 -0400 Received: by mail-la0-f50.google.com with SMTP id b8so1182355lan.37 for ; Tue, 20 May 2014 22:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=2V8nAkNSJCR9w+qpRElbNiyG+6JBCKNfTJO/9Tfk1hI=; b=MxQqp9TQNy3IZqZHwQMMwW3vohoV9006uxZELJ3GKhvupw6bhTfq3X0pRoYUJ2WHNR RugUoP5p61Ye8emkSfzYyVLfClgOG/Xtwq2/0+F/ZMr9ifKdpE0dZ5sUIzZxgVMcFLim ZlmzaqPq81XG4oe1EyNplLR6DovtfsJUEcznJsH1/f1WSIOpX8vHyJk1p/72utlPNe8f UWrjz7TKNyfuKTOCu5ATDiGlqWCc6qF4BZGyB0dLcaOpFqWvD3dWvt4lpio0j29VSH8Y j9iVPHzIXPhOSuOcZ/qtBr26bgoFDtPm67etx7yigRGGXETgszWuoPcNmbxrmkiwDN4A i9zw== X-Received: by 10.152.2.2 with SMTP id 2mr36196186laq.26.1400651203002; Tue, 20 May 2014 22:46:43 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Tue, 20 May 2014 22:46:02 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 May 2014 14:46:02 +0900 X-Google-Sender-Auth: VYullpyooGX5dmBc_RQJPnM7Y5c Message-ID: To: Nikita Popov Cc: Arvids Godjuks , PHP internals Content-Type: multipart/alternative; boundary=089e013c647068c90204f9e28572 Subject: Re: [PHP-DEV] Re: 64bit and phpng, votes and plans From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e013c647068c90204f9e28572 Content-Type: text/plain; charset=UTF-8 Hi Nikita, On Wed, May 21, 2014 at 2:21 PM, Nikita Popov wrote: > As I have already said: 64bit (or rather 63bit) integer keys are already > supported on LP64 and ILP64 platforms. This proposal supports them on LLP64 > as well. The issue you're hitting has nothing to do with 64bit integers - > you are using a key that is *way* larger than that, i.e. a double key. > Double keys are handled by converting them to integers frist. This > conversion is a wraparound conversion, not a clamp conversion, so you end > up with some meaningless negative number. It was wrong example. However, if array int key size is 32bit, 64bit value would never fit. I agree Rasmus's argument about string offset. If anyone would like to deal with extremely large data, they should use stream or like. It just wouldn't work well without it now. Regardless of this RFC acceptance or not, it's nice if all of these limitations are documented in the manual under single section. Perhaps, new appendix? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e013c647068c90204f9e28572--