Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76592 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80574 invoked from network); 16 Aug 2014 23:47:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Aug 2014 23:47:56 -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.48 as permitted sender) X-PHP-List-Original-Sender: park.framework@gmail.com X-Host-Fingerprint: 209.85.218.48 mail-oi0-f48.google.com Received: from [209.85.218.48] ([209.85.218.48:39337] helo=mail-oi0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/11-65521-AADEFE35 for ; Sat, 16 Aug 2014 19:47:54 -0400 Received: by mail-oi0-f48.google.com with SMTP id h136so2620015oig.21 for ; Sat, 16 Aug 2014 16:47:51 -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=YV5c9bpRR4kCcxuMXI0o16T7A4SLckptCtzCkA6lclE=; b=Pl06i7HgLYgwZFPlVkaHu40dG6t8kIhClJphKO4HLCL/NDnVjzAbRL0NN6GSwQcJae uDYmdk9F8R9rJR/9HSPXLuOepg0oukv6gLha/bEg4QXLN0ImPuX1/btv9zWxv6GEqPYz LQq5vGNNY2TyNtAVlbeErloPPgd3NJcDN1yLCXONui/YY+pF5cFVo0l703yn3Tv77mCj kmauHuw3d6MnJMmR0ibtzJ/hJGdVnMiFuwLPwuM7OEO6XFqsXhadeQJDZUHng9KPw9Ob 42ImISBLZQQNPgGG+Ma2BjwWLlCVqnQ+ZHr4i5j5oUbwQdPnP/3Y/Qv/nuVb58gUsezp zhIw== MIME-Version: 1.0 X-Received: by 10.60.60.167 with SMTP id i7mr28998582oer.41.1408232871768; Sat, 16 Aug 2014 16:47:51 -0700 (PDT) Received: by 10.76.23.37 with HTTP; Sat, 16 Aug 2014 16:47:51 -0700 (PDT) In-Reply-To: References: Date: Sun, 17 Aug 2014 02:47:51 +0300 Message-ID: To: Chris Wright Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0158bab41537fe0500c7c471 Subject: Re: [PHP-DEV] Native support - PUT request, multipart form data From: park.framework@gmail.com (Park Framework) --089e0158bab41537fe0500c7c471 Content-Type: text/plain; charset=UTF-8 Variable $_PUT is already a popular name. Many for yourself already so it was called, at the bottom link. http://stackoverflow.com/search?q=PHP+%24_PUT But I like the name $_DATA - it is universal for any request method. For frontend developers, this name is very clear: $.ajax({ type: "PUT", contentType: "application/json", data: {"name": "value"} }); Except multipart form data, needed and native support for application/json. In many languages (Java, Python, ASP), it has long been there. It is a pity that the PHP in 2014, it has not yet implemented. 2014-08-17 2:14 GMT+03:00 Chris Wright : > On 16 August 2014 23:41, Park Framework wrote: > > This is necessary for convenient use RESTful API. > > > > file_get_contents('php://input') - Very inconvenient > > > > I would like to finally get native support for PHP, preferably version > 5.6 > > The window for getting new features into 5.6 has passed, quite a long time > ago. > > Also, there is no $_PUT superglobal (and personally I do not think > there should be one), and it would not make sense to put this data > into $_POST (or any existing superglobal). Please explain the API you > envisage to get this working. > --089e0158bab41537fe0500c7c471--