New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7 호환성 개선 (진행중) #1814

merged 12 commits into from Feb 18, 2016

Fix regression with HTTP_RAW_POST_DATA

  • Loading branch information...
kijin committed Dec 8, 2015
commit d117147d7623f63a8713d9876d52f3a6ce8f06c3
@@ -200,8 +200,13 @@ function Context()
function init()
// fix missing HTTP_RAW_POST_DATA in PHP 5.6 and above
if(!isset($GLOBALS['HTTP_RAW_POST_DATA']) && version_compare(PHP_VERSION, '5.6.0', '>=') === true) {
$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
if(!preg_match('/^[<\{\[]/', $GLOBALS['HTTP_RAW_POST_DATA']))
// set context variables in $GLOBALS (to use in display handler)
ProTip! Use n and p to navigate between commits in a pull request.