Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35066 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47334 invoked by uid 1010); 1 Feb 2008 09:20:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47319 invoked from network); 1 Feb 2008 09:20:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2008 09:20:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=giunta.gaetano@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=giunta.gaetano@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.214.233 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: giunta.gaetano@gmail.com X-Host-Fingerprint: 72.14.214.233 hu-out-0506.google.com Received: from [72.14.214.233] ([72.14.214.233:19958] helo=hu-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/73-22304-144E2A74 for ; Fri, 01 Feb 2008 04:20:01 -0500 Received: by hu-out-0506.google.com with SMTP id 40so929382hub.13 for ; Fri, 01 Feb 2008 01:19:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:sender; bh=DTPKf+YDZnvhviGxJ5/IX0qyEdJ+ePZFYwV9bNjQ7uc=; b=gayiyrCPMc4b8oBejCvrvrc+DxDRbbzGCsosmUEiKa2f/nyf19iCfV2JNRemZspcvSS9UvWU5vIFL6XTYvHICmUHjVLC8/5343qfhsT3z8CNPm3mP55ktQQKOZOdofZYCgw62jJBxI285SCFgHDsivD/Qf2dzcj77hj9k9fSBp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:sender; b=a+7aDhEzlIidSrkABUrNeHKtC1l2VmlsML2+dB3c7hWq36vHs0Igmz6XUI8Ll3N6HwJxHIudYU+skZTTxQwfMXEHTSS5SaabX3gxBZQTz+Bi2M0h7+eH1zP62wrcqUrVd7m4NnTNMi1OYxAZbsv6bIO3xDT2p8qJcIy7HY1L/YU= Received: by 10.86.70.8 with SMTP id s8mr2971077fga.29.1201857598283; Fri, 01 Feb 2008 01:19:58 -0800 (PST) Received: from ?192.168.1.189? ( [82.123.1.254]) by mx.google.com with ESMTPS id e11sm12419163fga.5.2008.02.01.01.19.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 01 Feb 2008 01:19:57 -0800 (PST) Message-ID: <47A2E424.7050306@ez.no> Date: Fri, 01 Feb 2008 10:19:32 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Gaetano Giunta Subject: Re: json_encode() bug From: gg@ez.no (Gaetano Giunta) Stanislav Malyshev wrote: > ... > The question is - should we have an error there? If > so, which one - E_WARNING, E_NOTICE? I'm for E_WARNING. +1 Also please add at least a warning when errors are found in decoding process, so that it is somewhat feasible to distinguish a bad decode from json_decode('false') Gaetano