Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96377 invoked from network); 2 Mar 2009 20:35:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2009 20:35:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.218.180 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 209.85.218.180 mail-bw0-f180.google.com Received: from [209.85.218.180] ([209.85.218.180:51879] helo=mail-bw0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/62-19139-8F24CA94 for ; Mon, 02 Mar 2009 15:35:06 -0500 Received: by bwz28 with SMTP id 28so2197208bwz.23 for ; Mon, 02 Mar 2009 12:35:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UdU5abVs73O7S+7hqksxEAXrvMeIO7LMJG5Aug5ipBI=; b=QNzjrLEkJLTtYobRYIr2AQBI3padY0m/p6x//7CFPsjBGH0gwCpqQrnTIxp0DA5puY vlWFuJt08GQwZpoHUUshxjcWcKAJSu/j4GAxJPU8qS0Uajk5bqjzbF0y+XnmWcSJUfYG EVCf5lN5LLui548b9v44/5VxAM4rcvJZraTuQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=c70OmbXsYgP3S5omF3FuIvYsgyCQ3ThEGEGPTpmIcy+0wVFbon3YjDy3IKtOFP+9uK 4AzBLZitTPPAAffhYrkBVxRAONAF7Xm0odt2kQIhPtTuLWQUJmZQW39jgB7w3SMo4mVN PlWiJ3RWjGEgefHYLhXForPfJn8OAIts7nTtY= MIME-Version: 1.0 Received: by 10.223.113.199 with SMTP id b7mr6331297faq.82.1236026101571; Mon, 02 Mar 2009 12:35:01 -0800 (PST) Reply-To: RQuadling@googlemail.com In-Reply-To: <3018FA04-C58D-45AC-9327-4167FBFF74B7@prohost.org> References: <10845a340903020821v718bc762g243864f7e098ee1c@mail.gmail.com> <3018FA04-C58D-45AC-9327-4167FBFF74B7@prohost.org> Date: Mon, 2 Mar 2009 20:35:00 +0000 Message-ID: <10845a340903021235q4d445055ye148fa6a3b1cbac3@mail.gmail.com> To: Ilia Alshanetsky Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Patch and test cases too for From: rquadling@googlemail.com (Richard Quadling) 2009/3/2 Ilia Alshanetsky : > I believe that this is a feature, so it would not go into 5.2, sorry. > > > Ilia Alshanetsky > That's OK. Just like to try these things sometimes. > > > > 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 =C2=A0 =C2=A0 =C2=A027 May 2008 18:16:03 -0000 =C2=A0= =C2=A0 =C2=A01.3 >> +++ tests/002.phpt =C2=A0 =C2=A0 =C2=A02 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 >> >> >> >> -- >> ----- >> Richard Quadling >> Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213= 474731 >> "Standing on the shoulders of some very clever giants!" >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213474= 731 "Standing on the shoulders of some very clever giants!"