Re: Inconsistent json_decode() results

From: Date: Wed, 05 May 2010 17:43:06 +0000
Subject: Re: Inconsistent json_decode() results
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-304918@lists.php.net to get a copy of this message
2010/5/5 Ali Asghar Toraby Parizy <aliasghar.toraby@gmail.com> > 2010/5/5 François Beausoleil <francois@teksol.info>: > > Hello all! > > > > We're seeing inconsistent json decoding between PHP versions: > http://gist.github.com/390090 > > > > Calling json_decode() from 5.2.6 returns an associative array when asked, > while 5.2.10 always returns a stdClass. Is this a bug or a problem with my > calling convention? > > > > Thanks! > > François > > I think this is a bug, since you're using it correctly. 5.2.11 seems to have fixed the problem: http://pastie.org/947103 Michiel ps to Ali, most people here seem to prefer it if you type your reply at the bottom of the previous post. I personally don't mind since my client (Gmail) hides quoted text by default, but it does make things easier if you can see the quoted text.

« previous php.general (#304918) next »