mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Don't warn about "always_populate_raw_post_data" on PHP7
Summary: Ref T9640. This option was removed in PHP7, so there's no reason to warn about it. Test Plan: No longer saw a setup warning on PHP7. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9640 Differential Revision: https://secure.phabricator.com/D17196
This commit is contained in:
parent
e66a03eaa3
commit
4a34f26a44
1 changed files with 7 additions and 1 deletions
|
@ -40,7 +40,13 @@ final class PhabricatorPHPConfigSetupCheck extends PhabricatorSetupCheck {
|
|||
->setMessage($message);
|
||||
}
|
||||
|
||||
$raw_post_data = (int)ini_get('always_populate_raw_post_data');
|
||||
if (version_compare(phpversion(), '7', '>=')) {
|
||||
// This option was removed in PHP7.
|
||||
$raw_post_data = -1;
|
||||
} else {
|
||||
$raw_post_data = (int)ini_get('always_populate_raw_post_data');
|
||||
}
|
||||
|
||||
if ($raw_post_data != -1) {
|
||||
$summary = pht(
|
||||
'PHP setting "%s" should be set to "-1" to avoid deprecation '.
|
||||
|
|
Loading…
Reference in a new issue