Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77523 invoked from network); 21 Sep 2012 11:38:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Sep 2012 11:38:24 -0000 Authentication-Results: pb1.pair.com header.from=mountkin@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mountkin@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: mountkin@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:54597] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/12-62301-FA15C505 for ; Fri, 21 Sep 2012 07:38:24 -0400 Received: by lbbgp3 with SMTP id gp3so4078736lbb.29 for ; Fri, 21 Sep 2012 04:38:20 -0700 (PDT) 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=3YupfJzxRhxPuqAxn3R6NU6NEfvMLbwRddm++cXCIOU=; b=cHnRR+VjGaIo4PfSrsarlTI4kSXdcFYtKSVQL5Tymh7NecoHL4e1V9ywiYTfJ8heni 1hAKhTRrmTd0cEj9QIercXoni615I5/vPfnuKrEnzqVTXjjhfYMtT668gZ0cdMdNini+ yl+eC3fY1jDvkbKhyKZhgJ3nmB01yt6WL16Rb0JIY4K5QP2jg1fP3GPmnvy2t+8AYkjZ jrX2t3o3QL+02TkI6+WwH4qZxfxY++PUlY06eA8Ky62DhBhuSpGX+/zOV0Z1wvG1ZR1J vsyHJdhDXcplLBTxtOnVs5wNmGxcyhquB1kV1lykijs+k1tqlXYA2WrQ4vKPervYVzZ+ EFQQ== MIME-Version: 1.0 Received: by 10.112.87.161 with SMTP id az1mr1560598lbb.99.1348227500054; Fri, 21 Sep 2012 04:38:20 -0700 (PDT) Received: by 10.112.83.70 with HTTP; Fri, 21 Sep 2012 04:38:20 -0700 (PDT) In-Reply-To: <505C506A.1010108@hoa-project.net> References: <505C4A06.6040304@hoa-project.net> <505C506A.1010108@hoa-project.net> Date: Fri, 21 Sep 2012 19:38:20 +0800 Message-ID: To: ivan.enderlin@hoa-project.net Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d0401723f3797f104ca34adb6 Subject: Re: [PHP-DEV] POST, content-type: application/json and json_decode From: mountkin@gmail.com (Starry Sky) --f46d0401723f3797f104ca34adb6 Content-Type: text/plain; charset=ISO-8859-1 Ignore my former post please.. I forgot the "Content-Type: application/json" in your proposal. On Fri, Sep 21, 2012 at 7:32 PM, Ivan Enderlin @ Hoa < ivan.enderlin@hoa-project.net> wrote: > On 21/09/12 13:31, Starry Sky wrote: > >> Hi, >> > Hi, > > This may lead to a BC break. >> If the post body contains a variable with the same name in the JSON, the >> $_POST will be confusing. >> > Can you give me an example please? > > > -- > Ivan Enderlin > Developer of Hoa > http://hoa.42/ or http://hoa-project.net/ > > PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) > http://disc.univ-fcomte.fr/ and http://www.inria.fr/ > > Member of HTML and WebApps Working Group of W3C > http://w3.org/ > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d0401723f3797f104ca34adb6--