Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15402307
D17196.id41356.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
765 B
Referenced Files
None
Subscribers
None
D17196.id41356.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17196: Don't warn about "always_populate_raw_post_data" on PHP7
Attached
Detach File
Event Timeline
Log In to Comment