Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php')
-rw-r--r--plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php8
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', '>=');
+ }
}