On 14 Oct 2014, at 19:29, Lester Caine <les...@lsces.co.uk> wrote: > If a 64bit build of PHP is using a simple integer key for a BIGINT key > from the database, what will be the equivalent on a 32bit build? > > It may be that we have to add code to the DB drivers to ensure that > BIGINT remains a standard string conversion on both platforms in order > to maintain consistent results. One being a simple integer key and the > other a GMP based key IS a problem when the key is constructed from > other shifted elements. This may be no more complicated than happens > now, but is a real life situation that needs a consistent result.
So, we’re talking about array keys, right? Well, strings sometimes become integer keys, and sometimes become string keys in arrays. This is actually the same behaviour the RFC and patch currently have for bigints: if it’s in the range of a long, it’s an integer key, otherwise a string key. So the handling would actually be the same as now for array keys. -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php