@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove setup check for always_populate_raw_post_data

Summary:
rP23a49eb4 and rP7d8c84a7 bumped the required PHP version from 5.2.3 to 7.2.25.
Thus the check for `always_populate_raw_post_data` is unneeded now.
See also https://www.php.net/manual/en/migration56.deprecated.php

Test Plan: Unknown.

Reviewers: O1 Blessed Committers, mainframe98

Reviewed By: O1 Blessed Committers, mainframe98

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D26288

-27
-27
src/applications/config/check/PhabricatorPHPConfigSetupCheck.php
··· 40 40 ->setMessage($message); 41 41 } 42 42 43 - if (version_compare(phpversion(), '7', '>=')) { 44 - // This option was removed in PHP7. 45 - $raw_post_data = -1; 46 - } else { 47 - $raw_post_data = (int)ini_get('always_populate_raw_post_data'); 48 - } 49 - 50 - if ($raw_post_data != -1) { 51 - $summary = pht( 52 - 'PHP setting "%s" should be set to "-1" to avoid deprecation '. 53 - 'warnings.', 54 - 'always_populate_raw_post_data'); 55 - 56 - $message = pht( 57 - 'The "%s" key is set to some value other than "-1" in your PHP '. 58 - 'configuration. This can cause PHP to raise deprecation warnings '. 59 - 'during process startup. Set this option to "-1" to prevent these '. 60 - 'warnings from appearing.', 61 - 'always_populate_raw_post_data'); 62 - 63 - $this->newIssue('php.always_populate_raw_post_data') 64 - ->setName(pht('Disable PHP %s', 'always_populate_raw_post_data')) 65 - ->setSummary($summary) 66 - ->setMessage($message) 67 - ->addPHPConfig('always_populate_raw_post_data'); 68 - } 69 - 70 43 if (ini_get('mysqli.allow_local_infile')) { 71 44 $summary = pht( 72 45 'Disable unsafe option "%s" in PHP configuration.',