Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61472 invoked from network); 26 Jun 2014 11:17:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2014 11:17:36 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:41298] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/C2-39155-0510CA35 for ; Thu, 26 Jun 2014 07:17:36 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 91D782400E4; Thu, 26 Jun 2014 07:17:33 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id j_2DXyPBVo0C; Thu, 26 Jun 2014 07:17:33 -0400 (EDT) Received: from [192.168.0.15] (unknown [90.210.122.167]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 7C5D52400DF; Thu, 26 Jun 2014 07:17:32 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) In-Reply-To: Date: Thu, 26 Jun 2014 12:17:29 +0100 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <7807D11E-BE36-43AF-9E6E-854BE2B0C08D@ajf.me> References: <1CA68980-7451-4E28-AD4F-ED120393E131@ajf.me> To: Alexey Zakhlestin X-Mailer: Apple Mail (2.1878.2) Subject: Re: [PHP-DEV] [DRAFT][RFC] Big Integer Support From: ajf@ajf.me (Andrea Faulds) On 26 Jun 2014, at 12:15, Alexey Zakhlestin wrote: >=20 > On 26 Jun 2014, at 01:04, Andrea Faulds wrote: >=20 >> I=92m less concerned about whether bigints become string keys or = preserve their int-ness, >> as the difference to the end-user is much lesser. If I did add = support for bigint keys, >> I=92d probably just do so by storing them as strings and converting = to bigint on output. >=20 > The difference is quite noticeable actually. >=20 > for example, http://docs.php.net/array_merge >=20 > =93If the input arrays have the same string keys, then the later value = for that key will overwrite the previous one. If, however, the arrays = contain numeric keys, the later value will not overwrite the original = value, but will be appended.=94 Ooh, good catch. I guess I=92ll have to look into whether bigint keys = are possible, then. -- Andrea Faulds http://ajf.me/