Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80377 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6479 invoked from network); 11 Jan 2015 19:07:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2015 19:07:24 -0000 Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.44 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.216.44 mail-qa0-f44.google.com Received: from [209.85.216.44] ([209.85.216.44:58846] helo=mail-qa0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/10-05184-BE9C2B45 for ; Sun, 11 Jan 2015 14:07:24 -0500 Received: by mail-qa0-f44.google.com with SMTP id w8so5365184qac.3 for ; Sun, 11 Jan 2015 11:07:19 -0800 (PST) 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=1XElCHISSCBccPgqJAq/05qgylP5gthsPu8IPMo4Yyk=; b=fGykmuFcb5OngG5q3116WZGXq6E0QRLa7g9g3Cb02ApR002y/rE6slevOrMIrMAoHv K2gPyDDyGxJ2eS7c18Q/PlFYuWQfj+PDD8zUFhzvUtcjJGn3jfPv9I4nLvLzMRs+8jWz 2bhDb+F6SUHQMKzu3RjMauE6kHus2uM47UyDQQ2EwILoMoqm+Ihl2N/524aoJsi1M2Cc UktDlPOkZZNjqyXBcp7T0he9vct3q9akWWSEV0suyIX0dGstSMjcl9M+zYNK+ycF1Pwz 0JBkaC6wlKwdM8yAcngeip6z10cXvTLS89k1fvGM7NEo1e2XfT6Qsdv6YGJDCfQzTplH T+5A== MIME-Version: 1.0 X-Received: by 10.140.106.198 with SMTP id e64mr41061800qgf.19.1421003239692; Sun, 11 Jan 2015 11:07:19 -0800 (PST) Received: by 10.229.174.6 with HTTP; Sun, 11 Jan 2015 11:07:19 -0800 (PST) Received: by 10.229.174.6 with HTTP; Sun, 11 Jan 2015 11:07:19 -0800 (PST) In-Reply-To: References: Date: Sun, 11 Jan 2015 19:07:19 +0000 Message-ID: To: Jakub Zelenka Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a113a68fe53a0ff050c651934 Subject: Re: [PHP-DEV] [RFC] jsond From: dragoonis@gmail.com (Paul Dragoonis) --001a113a68fe53a0ff050c651934 Content-Type: text/plain; charset=UTF-8 On 11 Jan 2015 17:28, "Jakub Zelenka" wrote: > > Hi, > > This rfc about replacing json with jsond is under discussion. > > https://wiki.php.net/rfc/jsond > > I have finally done some benchmarks. You can find a link in the RFC. > > It's been extensively tested for the last few months and there is just one > BC that I'm aware of. > > The new parser accepts only float number that conforms to RFC 7159 . This > is also not consistent between decoding float number that are and are not > in the array/object ( there are two conversion rules). The following > formats are rejected: > > 1. parsed at the top level: 07, 0xff, .1, -.1 > 2. parser by JSON_Parser: [1.], [1.e1] > > I feel that this was a bug in the new parser and we must conform to RFC > 7159 ! I was just thinking about your jsond work just yesterday actually. I feel if we need to make a minor BC break to get this in, then go with it for PHP 7. I do think that if it's possible for you to detect when users supply this invalid float input that you would throw an informative exception to help people with the transition over to PHP7. What's the rest of the team's thoughts on this ? > > Cheers > > Jakub --001a113a68fe53a0ff050c651934--