Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78027 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22213 invoked from network); 14 Oct 2014 15:54:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 15:54:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=park.framework@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=park.framework@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: park.framework@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-oi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:64422] helo=mail-oi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/28-18603-B374D345 for ; Tue, 14 Oct 2014 11:54:36 -0400 Received: by mail-oi0-f42.google.com with SMTP id a141so17213002oig.1 for ; Tue, 14 Oct 2014 08:54:33 -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:content-transfer-encoding; bh=pyR83PNe+7zzg4SkNIxn1tt5dxEXslS6joOQvg9K5+M=; b=wMef4zZ0lGOrJGvRrQWlQkEIQL3DZKbuJ2Q+McDM0q8Mf+ZsgXeBrU1UVg4vpaTApI Lxy3crf9Ei6bewxfkYz5dRJXQG6wHdPOsebVXTl+PkpLjHurCmJO0o4wQDMW7v58KQpm IkyaY7zsmjsESfXsyTgNc/dUiHfdp4h+ir4qiftmzkjOskS5Hjd+2jWHV7LnjzyiYSwg Trtb2IF2E9B1mhxcviD4Qk+4Q52pssf7QdM+0ZjxZ0WNrTuB/tZYaO3shdpExB9J7CtD eMBOa/nqNRzY8XmmfuN5rDLAvWARBu8knX5JJxR21V4syvQQejxyOeBO5h/zZSir+bOy rqvQ== MIME-Version: 1.0 X-Received: by 10.202.177.138 with SMTP id a132mr5139049oif.20.1413302073098; Tue, 14 Oct 2014 08:54:33 -0700 (PDT) Received: by 10.76.23.37 with HTTP; Tue, 14 Oct 2014 08:54:32 -0700 (PDT) In-Reply-To: References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> <8CB055D4-F164-4DF3-B019-684BAE7E016E@ajf.me> <543D3FBE.9000402@lsces.co.uk> Date: Tue, 14 Oct 2014 18:54:32 +0300 Message-ID: To: Mike Dugan Cc: Lester Caine , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: park.framework@gmail.com (Park Framework) 2014-10-14 18:31 GMT+03:00 Mike Dugan : > The entire point of this debate is that $_GET are passed through the URL = and not necessarily indicative of a GET (HTTP) action. You could just as ea= sily POST data to a URL with parameters, so although you would access those= URL params via $_GET, the HTTP request itself isn=E2=80=99t a GET request.= If you pass state data through the URL, there=E2=80=99s no mandate that yo= u're GETting anything, rather you=E2=80=99re accessing the query string tha= t=E2=80=99s appended to the URL regardless of the HTTP action. > The main problem that we must solve - getting data as =D0=B0=D1=81=D1=81=D0= =BE=D1=86 array, from body request when request method PUT, DELETE,... Now file_get_contents(=E2=80=98php://input') but php://input is not available with enctype=3D"multipart/form-data" Need to make access to these data, in global variables for all HTTP request methods.