Page MenuHomePhabricator

D14566.diff
No OneTemporary

D14566.diff

diff --git a/src/applications/cache/spec/PhabricatorCacheSpec.php b/src/applications/cache/spec/PhabricatorCacheSpec.php
--- a/src/applications/cache/spec/PhabricatorCacheSpec.php
+++ b/src/applications/cache/spec/PhabricatorCacheSpec.php
@@ -79,6 +79,9 @@
}
protected function raiseInstallAPCIssue() {
+ if (version_compare(phpversion(), '7', '>=')) {
+ return;
+ }
$message = pht(
"Installing the PHP extension 'APC' (Alternative PHP Cache) will ".
"dramatically improve performance. Note that APC versions 3.1.14 and ".
diff --git a/src/applications/cache/spec/PhabricatorDataCacheSpec.php b/src/applications/cache/spec/PhabricatorDataCacheSpec.php
--- a/src/applications/cache/spec/PhabricatorDataCacheSpec.php
+++ b/src/applications/cache/spec/PhabricatorDataCacheSpec.php
@@ -61,7 +61,7 @@
}
private function initNoneSpec() {
- if (version_compare(phpversion(), '5.5', '>=')) {
+ if (version_compare(phpversion(), '5.5', '>=') && version_compare(phpversion(), '7', '<')) {
$message = pht(
'Installing the "APCu" PHP extension will improve performance. '.
'This extension is strongly recommended. Without it, Phabricator '.
diff --git a/src/applications/cache/spec/PhabricatorOpcodeCacheSpec.php b/src/applications/cache/spec/PhabricatorOpcodeCacheSpec.php
--- a/src/applications/cache/spec/PhabricatorOpcodeCacheSpec.php
+++ b/src/applications/cache/spec/PhabricatorOpcodeCacheSpec.php
@@ -188,7 +188,7 @@
}
private function initNoneSpec() {
- if (version_compare(phpversion(), '5.5', '>=')) {
+ if (version_compare(phpversion(), '5.5', '>=') && version_compare(phpversion(), '7', '<')) {
$message = pht(
'Installing the "Zend OPcache" extension will dramatically improve '.
'performance.');

File Metadata

Mime Type
text/plain
Expires
Sun, May 12, 4:35 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6289080
Default Alt Text
D14566.diff (1 KB)

Event Timeline