diff options
Diffstat (limited to 'plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php')
-rw-r--r-- | plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php b/plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php index 533676e232..41142214f1 100644 --- a/plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php +++ b/plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php @@ -65,8 +65,9 @@ class PhpSettingsCheck implements Diagnostic 'session.auto_start=0', ); - if ($this->isPhpVersionAtLeast56() && ! defined("HHVM_VERSION")) { + if ($this->isPhpVersionAtLeast56() && ! defined("HHVM_VERSION") && !$this->isPhpVersionAtLeast70()) { // always_populate_raw_post_data must be -1 + // removed in PHP 7 $requiredSettings[] = 'always_populate_raw_post_data=-1'; } @@ -77,4 +78,9 @@ class PhpSettingsCheck implements Diagnostic { return version_compare(PHP_VERSION, '5.6', '>='); } + + private function isPhpVersionAtLeast70() + { + return version_compare(PHP_VERSION, '7.0.0-dev', '>='); + } } |