Re: PHP-5.6 and $HTTP_RAW_POST_DATA

From: Date: Fri, 15 Nov 2013 22:14:23 +0000
Subject: Re: PHP-5.6 and $HTTP_RAW_POST_DATA
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-70164@lists.php.net to get a copy of this message
On Fri, Nov 15, 2013 at 11:01 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > 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. > if you do that don't forget to update the opcode caches(opcache, apc, etc.) also, I remember it caused them problems when we introduced auto_globals_jit. -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#70164) next »