Re: PHP-5.6 and $HTTP_RAW_POST_DATA

From: Date: Fri, 15 Nov 2013 22:01:23 +0000
Subject: Re: PHP-5.6 and $HTTP_RAW_POST_DATA
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-70163@lists.php.net to get a copy of this message
Hi Mike, On Fri, Nov 15, 2013 at 4:18 PM, Michael Wallner <mike@php.net> wrote: > Hi there! > > There seem to be concerns about the removal of $HTTP_RAW_POST_DATA in > PHP-5.6. Nobody mentioned it would be an unacceptable BC break in the > discussions of the POST data temp stream feature, so I was a bit > surprised when it came up. > > Anyway, what's the opnion on that? For me it is a non-issue, because BC > can be restored with one line ($GLOBALS["HTTP_RAW_POST_DATA"] = > file_get_contents("php://input")). > But I could probably re-add the always_populate_raw_post_data INI setting > and do more or less what the one-liner does internally. > > Thoughts? > How about create $HTTP_RAW_POST_DATA on demand? Just like $_ENV. Personally, I don't mind this BC break at all as it is simple to workaround. We can have RFC vote from now. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#70163) next »