Re: Re: 64bit and phpng, votes and plans

From: Date: Tue, 20 May 2014 21:12:26 +0000
Subject: Re: Re: 64bit and phpng, votes and plans
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-74388@lists.php.net to get a copy of this message
On Wed, May 21, 2014 at 5:45 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > This is the reason why DB data values and Web inputs should not be > converted to native PHP data type blindly :) > It could work, but it cannot work with 64bit int. > It may be changed not to use int key (use string key) when int key overflows, then it would work. However, many users are trying to use strict type. Users may experience data validation errors for large int with 32bit int key. It would be better to allow 64bit int if int is 64bit. I prefer consistency, so array int key is better to support 64bit int key. IMHO. Similar argument applies to string also. It would be WTF, when users try to access string offset over 32bit values. Data dealt with PHP is getting larger and larger. It would be an issue sooner or later. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#74388) next »