Re: json_encode() behavior for incorrectly encoded strings

From: Date: Wed, 27 Jun 2012 11:27:25 +0000
Subject: Re: json_encode() behavior for incorrectly encoded strings
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-60983@lists.php.net to get a copy of this message
On Wed, Jun 27, 2012 at 1:41 AM, Stas Malyshev <smalyshev@sugarcrm.com>wrote: > Hi! > > > Makes sense to me. So should I do this? Remove warnings + add string > > parameter for json_last_error? > I think its weird that the parameter is called $error_string and setting it to true means returning an array. Why not in the spirit of others have a new function json_last_error_msg() or something similar? > > Looks fine. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#60983) next »