Re: Add a new flag for json_encode

From: Date: Wed, 05 Nov 2014 18:39:11 +0000
Subject: Re: Add a new flag for json_encode
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-78742@lists.php.net to get a copy of this message
On Wed, Nov 5, 2014 at 6:24 PM, Andrea Faulds <ajf@ajf.me> wrote: > > > On 5 Nov 2014, at 17:01, Ferenc Kovacs <tyra3l@gmail.com> wrote: > > > > 2, there is a chance that there are some exotic apps/systems which are > > already depending on the fact that php will/was used to send out 1 > instead > > of 1.0, and while we can break BC in a major release, the migration for > > those people would be much easier if they just have to change/set some > > options for their json_encode calls. > > It’d be even easier if we change nothing so they don’t need to touch their > JSON code. > > of course, I'm just arguing that even if we later on decide that we want this to be the default behavior, we would still keep the JSON_PRESERVE_FACTIONAL_PART flag, so that decision shouldn't affect whether or not we introduce the flag now. -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#78742) next »