Re: [DRAFT][RFC] Big Integer Support
| From: | Andrea Faulds | Date: | Thu, 26 Jun 2014 11:17:29 +0000 |
| Subject: | Re: [DRAFT][RFC] Big Integer Support | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75090@lists.php.net to get a copy of this message | ||
On 26 Jun 2014, at 12:15, Alexey Zakhlestin <indeyets@gmail.com> wrote:
>
> On 26 Jun 2014, at 01:04, Andrea Faulds <ajf@ajf.me> wrote:
>
>> I’m 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’d probably just do so by storing them as strings and converting to bigint on output.
>
> The difference is quite noticeable actually.
>
> for example, http://docs.php.net/array_merge
>
> “If 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.”
Ooh, good catch. I guess I’ll have to look into whether bigint keys are possible, then.
--
Andrea Faulds
http://ajf.me/