Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80606 invoked from network); 21 Jun 2012 15:40:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2012 15:40:11 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:62577] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/E6-42253-A5043EF4 for ; Thu, 21 Jun 2012 11:40:11 -0400 Received: by yenl12 with SMTP id l12so673546yen.29 for ; Thu, 21 Jun 2012 08:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Iepc8UI9Jf5zogcVDngf9ZdTAWmt49K1VC/XXECO7dE=; b=KH+7Eycj+pcaxlL4tFBANpqS0f4qFbTm3ZKjBbqeqnY8O6FpSVtC5vMyANiont6GXF dALiJAwb1HU2t+HKa1w0YHfyNH2LPYA4K3awmKieWh26fgQY4RGn7whYJ9vl+Y50Zo6T 3NOcSXqz5PUUavpR4p431dls+c0nfD7Fv610Vhdu1ZKEwNl35O46uC70Gt2HjdpmIPVK CiWxKQqYBcopVOUtrJzYOBS04+FcVQZe6r4f2i5G6r1TEMdA4yxeLFLxjKfBeo2SNfP8 J7k3pb7uDYgc48tSVzVYoRtIN3njr+4yTZY6uCEOCMooXMvZuQ1VTexpK9owBwb55pdm KeJQ== MIME-Version: 1.0 Received: by 10.236.187.37 with SMTP id x25mr8257796yhm.48.1340293208205; Thu, 21 Jun 2012 08:40:08 -0700 (PDT) Received: by 10.147.113.7 with HTTP; Thu, 21 Jun 2012 08:40:08 -0700 (PDT) In-Reply-To: <20120621141241.GA25789@analysisandsolutions.com> References: <20120621141241.GA25789@analysisandsolutions.com> Date: Thu, 21 Jun 2012 17:40:08 +0200 Message-ID: To: Daniel Convissor Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] json_encode() behavior for incorrectly encoded strings From: pierre.php@gmail.com (Pierre Joye) On Thu, Jun 21, 2012 at 4:12 PM, Daniel Convissor wrote: > Hi Nikita: > >> PHP <=3D 5.3.13, PHP 5.4, master behave as follows when an invalid UTF-8 >> string is encountered: >> =A0* A warning is thrown, but only if display_errors=3Doff > > So the warning is put into the error log? =A0But only if display_errors i= s > off? =A0And if display_errors is on, no warning is produced? damned :) I mean only display_errors is ON. obviously :) --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org