Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80405 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69190 invoked from network); 12 Jan 2015 03:01:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2015 03:01:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:53356] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/B6-34383-31933B45 for ; Sun, 11 Jan 2015 22:01:40 -0500 Received: by mail-la0-f46.google.com with SMTP id q1so22131078lam.5 for ; Sun, 11 Jan 2015 19:01:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=hHBiBPn1PmqjFXVkyLkYGvIlyH+UMs/+I9zZG+849Eg=; b=FGpLxEsH9W3VRBgRU6IaQBW+Zq4Hpqfe8XuWdRf/SpQqOTN95XYKnR+OEpDFviItoh qkPvTu+VAHqLEiE9dcTQQAtagHw8HB17nvVJeDLjRYsQV3sTZBAZOfkKtt7KEP7QmW/a le23Y7FonUYCCIxB8MprMbKX1agddbALOcgO2qbtspsovpKzFuYqGBml20hCH96hVIrV nL1IH0DGZl8M2iO5LspdgicuwpMLprBDehtTlUETsn5yfppKUhsOQT1KKrgEJ1xsojcK 0wj8ZveZxk6JUCsVal0Q6Z+E+w0G+c9E7Rx801BELmsMYfp7iwR2FCSvYyrqR2DGWDxa MLww== X-Gm-Message-State: ALoCoQnVZtJ3Mu63wBiJWdGH639JxPMnITIJUTD5u4tbne4EzeL2GFTkwf/FWNNDADF+VxwFA65zEIzlyEAPkRuG2t5JVxdlAM1MBeQz2RG6LPEDj89rSjlln16uGhpUIlIDEbKPKdue+k4nF85z8CB/J/QOybsQ5A== X-Received: by 10.112.150.194 with SMTP id uk2mr34292627lbb.84.1421031696002; Sun, 11 Jan 2015 19:01:36 -0800 (PST) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPSA id zo3sm3738488lbb.10.2015.01.11.19.01.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 11 Jan 2015 19:01:34 -0800 (PST) Received: by mail-lb0-f170.google.com with SMTP id 10so15601168lbg.1 for ; Sun, 11 Jan 2015 19:01:34 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr34311507laz.71.1421031694028; Sun, 11 Jan 2015 19:01:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.64.176 with HTTP; Sun, 11 Jan 2015 19:01:13 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Jan 2015 11:01:13 +0800 Message-ID: To: Jakub Zelenka Cc: PHP internals list Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] jsond From: laruence@php.net (Xinchen Hui) Hey: On Mon, Jan 12, 2015 at 1:27 AM, 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] > does master of josnd already works with PHP7? I was plan to benchmark the performance with wordpress, but seems it still not compileable with PHP7? thanks > I feel that this was a bug in the new parser and we must conform to RFC > 7159 ! > > Cheers > > Jakub -- Xinchen Hui @Laruence http://www.laruence.com/