Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74378 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58575 invoked from network); 20 May 2014 07:09:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2014 07:09:39 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.52 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.52 mail-oa0-f52.google.com Received: from [209.85.219.52] ([209.85.219.52:44648] helo=mail-oa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/53-34683-2BFFA735 for ; Tue, 20 May 2014 03:09:39 -0400 Received: by mail-oa0-f52.google.com with SMTP id eb12so58444oac.39 for ; Tue, 20 May 2014 00:09:35 -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=OsYWywR76+TiDN+jCVNWDDJ+2rt2PdbizuiX8dzrrF8=; b=n9tTllPlPJwqnPDV+XEPqa1l7vmWzIEua/kqD0RSc5rTMER7WjBCh8ryLWHRQ4fixI OBOgeOvf1o8bAg7jCm6A+5lB3+pwLm23tagvJzwtXoZqzTbeyXFITagCbtAgPppydQ/U vfP2nDd9+uONPlzTFMRJ1tx3300selSltiEH6rwBcLYrr1SUu6EDRepVF0ZO8OPKJqRG vnC9XjplH48sjTIBf+paJAoLt6TdcQrlCBamOG7wgk96/d278BCdK/ZgKSPKHtXlDeV+ Z9M+6tE+yXF87kYnGFjoyEpF5Nds2W+XlIfg5DCKkWp81bLyMX9XOz61xpU5kSmcCXto oe/Q== MIME-Version: 1.0 X-Received: by 10.60.57.164 with SMTP id j4mr41455506oeq.24.1400569775552; Tue, 20 May 2014 00:09:35 -0700 (PDT) Received: by 10.182.165.69 with HTTP; Tue, 20 May 2014 00:09:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 May 2014 09:09:35 +0200 Message-ID: To: Yasuo Ohgaki Cc: Arvids Godjuks , PHP internals Content-Type: multipart/alternative; boundary=089e013d0ce8f47faa04f9cf8f46 Subject: Re: [PHP-DEV] Re: 64bit and phpng, votes and plans From: nikita.ppv@gmail.com (Nikita Popov) --089e013d0ce8f47faa04f9cf8f46 Content-Type: text/plain; charset=UTF-8 On Tue, May 20, 2014 at 4:54 AM, Yasuo Ohgaki wrote: > Hi Arvids, > > On Mon, May 19, 2014 at 8:59 PM, Arvids Godjuks >wrote: > > > Yes, I > > agree that an array of 2^64 bit elements probably will not be handled by > > PHP anytime soon, but did you concider the fact that an array's key, > > indexed by an ID column from the database, can easilly be bigger than 32 > > bit unsigned integer > > > > Interesting point. I would not do this since I know the current limitation, > but > this is perfectly valid and practical usage. > > Regards, > You can already use a key larger than 32 bits to index an array. The limitation only applies if you want to actually store more than 2^32 (or 2^31 depending on the exact implementation) elements. That's the beauty of a hashtable: The allowed key domain is totally independent of the hashtable size ;) Nikita --089e013d0ce8f47faa04f9cf8f46--