mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +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);
|
->setMessage($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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');
|
$raw_post_data = (int)ini_get('always_populate_raw_post_data');
|
||||||
|
}
|
||||||
|
|
||||||
if ($raw_post_data != -1) {
|
if ($raw_post_data != -1) {
|
||||||
$summary = pht(
|
$summary = pht(
|
||||||
'PHP setting "%s" should be set to "-1" to avoid deprecation '.
|
'PHP setting "%s" should be set to "-1" to avoid deprecation '.
|
||||||
|
|
Loading…
Reference in a new issue