Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43232 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95154 invoked from network); 2 Mar 2009 20:33:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2009 20:33:06 -0000 Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 72.14.220.155 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 72.14.220.155 fg-out-1718.google.com Received: from [72.14.220.155] ([72.14.220.155:59920] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/12-19139-F724CA94 for ; Mon, 02 Mar 2009 15:33:04 -0500 Received: by fg-out-1718.google.com with SMTP id e12so848880fga.23 for ; Mon, 02 Mar 2009 12:32:59 -0800 (PST) Received: by 10.86.72.15 with SMTP id u15mr780402fga.8.1236025979738; Mon, 02 Mar 2009 12:32:59 -0800 (PST) Received: from ?192.168.1.111? (TOROON63-1176059019.sdsl.bell.ca [70.25.60.139]) by mx.google.com with ESMTPS id l19sm11538241fgb.47.2009.03.02.12.32.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Mar 2009 12:32:59 -0800 (PST) Cc: PHP Internals List Message-ID: <3018FA04-C58D-45AC-9327-4167FBFF74B7@prohost.org> To: RQuadling@googlemail.com In-Reply-To: <10845a340903020821v718bc762g243864f7e098ee1c@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 2 Mar 2009 15:32:55 -0500 References: <10845a340903020821v718bc762g243864f7e098ee1c@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) Subject: Re: [PHP-DEV] Patch and test cases too for From: ilia@prohost.org (Ilia Alshanetsky) I believe that this is a feature, so it would not go into 5.2, sorry. Ilia Alshanetsky On 2-Mar-09, at 11:21 AM, Richard Quadling wrote: > Hi. > > Regarding http://bugs.php.net/bug.php?id=3D47493, I've supplied a = patch > to the unit tests too. > > Any chance this could get committed to 5.2+ > > > > Index: tests/002.phpt > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /repository/php-src/ext/json/tests/002.phpt,v > retrieving revision 1.3 > diff -u -r1.3 002.phpt > --- tests/002.phpt 27 May 2008 18:16:03 -0000 1.3 > +++ tests/002.phpt 2 Mar 2009 16:16:13 -0000 > @@ -1,4 +1,4 @@ > ---TEST-- > +--TEST-- > json_encode() tests > --SKIPIF-- > > @@ -8,8 +8,14 @@ > var_dump(json_encode("")); > var_dump(json_encode(NULL)); > var_dump(json_encode(TRUE)); > + > var_dump(json_encode(array(""=3D>""))); > var_dump(json_encode(array(array(1)))); > +var_dump(json_encode(array()); > + > +var_dump(json_encode(array(""=3D>"")), PHP_JSON_FORCE_HASH); > +var_dump(json_encode(array(array(1))),PHP_JSON_FORCE_HASH); > +var_dump(json_encode(array(),PHP_JSON_FORCE_HASH); > > var_dump(json_encode(1)); > var_dump(json_encode("=D1=80=D1=83=D1=81=D1=81=D0=B8=D1=88")); > @@ -23,6 +29,10 @@ > string(4) "true" > string(7) "{"":""}" > string(5) "[[1]]" > +string(2) "[]" > +string(7) "{"":""}" > +string(15) "{"0":{"0":"1"}}" > +string(2) "{}" > string(1) "1" > string(38) ""\u0440\u0443\u0441\u0441\u0438\u0448"" > Done > > > > --=20 > ----- > Richard Quadling > Zend Certified Engineer : = http://zend.com/zce.php?c=3DZEND002498&r=3D213474731 > "Standing on the shoulders of some very clever giants!" > > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php