Re: json_encode() behavior for incorrectly encoded strings

From: Date: Thu, 21 Jun 2012 15:40:08 +0000
Subject: Re: json_encode() behavior for incorrectly encoded strings
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-60927@lists.php.net to get a copy of this message
On Thu, Jun 21, 2012 at 4:12 PM, Daniel Convissor <danielc@analysisandsolutions.com> wrote: > Hi Nikita: > >> PHP <= 5.3.13, PHP 5.4, master behave as follows when an invalid UTF-8 >> string is encountered: >>  * A warning is thrown, but only if display_errors=off > > So the warning is put into the error log?  But only if display_errors is > off?  And if display_errors is on, no warning is produced? damned :) I mean only display_errors is ON. obviously :) -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#60927) next »