Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42250 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 161 invoked from network); 14 Dec 2008 08:47:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2008 08:47:03 -0000 Authentication-Results: pb1.pair.com header.from=mike503@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=mike503@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.237 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mike503@gmail.com X-Host-Fingerprint: 209.85.198.237 rv-out-0506.google.com Received: from [209.85.198.237] ([209.85.198.237:23472] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/26-47862-708C4494 for ; Sun, 14 Dec 2008 03:47:03 -0500 Received: by rv-out-0506.google.com with SMTP id g37so2230353rvb.23 for ; Sun, 14 Dec 2008 00:47:00 -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:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=83FU2p497NPcH6WCcBoMEq+Pm4u31EQTvfYjGLdPTZ4=; b=X+UvamvqdPVOLSG/zWJOP3B1Cxje9wsqwYWcjQ6IPyXQMOitsdpM6RYYMnQUZbDJdL lj9IzE9bdhxCcI5GcxTVWzpL9b+3uuiyM7EYXDGoIJIyDRes4xqq3Il6L2pW8ibzPO8s +ODeNtBCMiqrYIO2IfqxKOyITeYIkR22cIkGY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pYxqe1kmkcktjUfgvQE9HlBezanZcsBPojscpJ8M5DFpUIPEekMtgnJWKeVoMCpUKf 7gaqwKuwnhO2KcjMtu3OurYVe1NYJYjv4B1GXLjRFYJTLKXeA2XjmruAGGkHZ9IJQUfx uq/2VJT5XDCkFltVdIVwc94SalRZbROFeFh+U= Received: by 10.140.201.8 with SMTP id y8mr2974513rvf.101.1229244420555; Sun, 14 Dec 2008 00:47:00 -0800 (PST) Received: by 10.141.152.1 with HTTP; Sun, 14 Dec 2008 00:47:00 -0800 (PST) Message-ID: Date: Sun, 14 Dec 2008 00:47:00 -0800 To: "Rasmus Lerdorf" Cc: "PHP Developers Mailing List" In-Reply-To: <4944C651.1090801@lerdorf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2D85B33E-889B-4214-9BB8-A12EFFFC641E@macvicar.net> <15E310EAB433466EAF996B252CBED2BB@pc> <49448D66.2030501@lerdorf.com> <28139bc0812132210p1ed94f4ds40e31ff499cf2e7@mail.gmail.com> <7463F1E1-A880-479F-9584-30FFCED6E614@gmail.com> <4944AA37.9030400@lerdorf.com> <234C8048-A00D-4AEE-A23E-5FA10EA85D6D@gmail.com> <4944AD36.7070406@lerdorf.com> <6C9F85B0-29B8-419C-8DD1-BA90135214D3@gmail.com> <4944C651.1090801@lerdorf.com> Subject: Re: [PHP-DEV] Removing basic types from our JSON parser From: mike503@gmail.com (mike) On Sun, Dec 14, 2008 at 12:39 AM, Rasmus Lerdorf wrote: > Eh? Read what you wrote there. If json wasn't pure javascript, how in > the world would eval() work on it? Sorry. I guess I meant it didn't execute by itself, but needed to be interpreted using something like eval and/or thrown into a variable before it was useful. Otherwise it's just text. I'm not sure why we had to do that workaround I previously mentioned, and I cannot find a repository with that old code, but nowadays json_encode seems to work seamlessly for all the data we exchange (which are strings, ints, arrays, no objects, possibly not even booleans) and just wanted to voice off if there was any possible incompatibility that may be introduced here. I'll go back in my corner now :)