Page MenuHomePhabricator

D17196.id41356.diff
No OneTemporary

D17196.id41356.diff

diff --git a/src/applications/config/check/PhabricatorPHPConfigSetupCheck.php b/src/applications/config/check/PhabricatorPHPConfigSetupCheck.php
--- a/src/applications/config/check/PhabricatorPHPConfigSetupCheck.php
+++ b/src/applications/config/check/PhabricatorPHPConfigSetupCheck.php
@@ -40,7 +40,13 @@
->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 '.

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 9:51 PM (3 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7578947
Default Alt Text
D17196.id41356.diff (765 B)

Event Timeline