Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60948 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71599 invoked from network); 23 Jun 2012 20:34:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2012 20:34:34 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:49790] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/10-04949-55826EF4 for ; Sat, 23 Jun 2012 16:34:29 -0400 Received: by pbbrp12 with SMTP id rp12so5469735pbb.29 for ; Sat, 23 Jun 2012 13:34:26 -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; bh=WE546R5DaBneR8Iw4JCowW6gjRBV+6vnEot1vp29TCA=; b=Qt+q6wI7zj+aOjwNIl1NDpwCTzFfMgw6kU/fdTYwyqn477qVWT61URvGR41HgZE79S Zy2sjSaU8Ayb780DZjGjvyeDNZYpyfK7QbdOii7R9aTqrsd2kmT6lF2vs8xtu8as62Kb kcltZ0QP2emLPGoI8NtfGwZo3X9WyAwozO94uRy4AmUHcdVaXoV8y8/3q/rdgU2YVVN6 F9vIRlWk0pew6Y0ZG7cFWt6NSVsypzfVxAIXKcQPXehT+dYjBMTtEJBNYu4PsdpBs+fO 8CJe/1azURStyVV4ar6d3Fk4Dh+qcS2yLz7e1DLJu6QET/bjfNPApPtB4yqeqh9Uzk92 Pw3w== MIME-Version: 1.0 Received: by 10.68.211.41 with SMTP id mz9mr24121759pbc.12.1340483666632; Sat, 23 Jun 2012 13:34:26 -0700 (PDT) Received: by 10.68.201.40 with HTTP; Sat, 23 Jun 2012 13:34:26 -0700 (PDT) In-Reply-To: <4FE61E9D.5050908@sugarcrm.com> References: <20120621141241.GA25789@analysisandsolutions.com> <4FE33EDF.2000409@lerdorf.com> <4FE61E9D.5050908@sugarcrm.com> Date: Sat, 23 Jun 2012 22:34:26 +0200 Message-ID: To: Stas Malyshev Cc: Nikita Popov , Rasmus Lerdorf , Daniel Convissor , PHP internals Content-Type: multipart/alternative; boundary=e89a8ff1c4f8c6dfb404c329ace5 Subject: Re: [PHP-DEV] json_encode() behavior for incorrectly encoded strings From: tyra3l@gmail.com (Ferenc Kovacs) --e89a8ff1c4f8c6dfb404c329ace5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Jun 23, 2012 at 9:53 PM, Stas Malyshev wrot= e: > Hi! > > > The warning for invalid UTF-8 stays intact and is thrown also with > > display_errors =3D On. If this behavior is undesired this can be remedi= ed > > later. > > Must we discuss it 1000 times anew? There was a reason why it didn't > throw warning when display_errors is on. The reason is that it is very > easy to feed the server configured with display_errors =3D on wrong JSON > and thus force it to reveal information, and this is largely beyond the > control of application writer. > > But what I am worried about even more is getting back to that "commit > first, discuss later" mentality. Why we have again a commit in the > stable branch before we have a consensus decision what it should be doing= ? > from the side, it doesn't seems to be a consensus about having this exception not honoring the display_errors setting. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --e89a8ff1c4f8c6dfb404c329ace5--