Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15385056
D16231.id39046.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16231.id39046.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
@@ -11,6 +11,23 @@
}
protected function executeChecks() {
+ if (version_compare(phpversion(), 7, '>=')) {
+ $message = pht(
+ 'This version of Phabricator does not support PHP 7. You '.
+ 'are running PHP %s.',
+ phpversion());
+
+ $this->newIssue('php.version7')
+ ->setIsFatal(true)
+ ->setName(pht('PHP 7 Not Supported'))
+ ->setMessage($message)
+ ->addLink(
+ 'https://phurl.io/u/php7',
+ pht('Phabricator PHP 7 Compatibility Information'));
+
+ return;
+ }
+
$safe_mode = ini_get('safe_mode');
if ($safe_mode) {
$message = pht(
diff --git a/src/docs/user/installation_guide.diviner b/src/docs/user/installation_guide.diviner
--- a/src/docs/user/installation_guide.diviner
+++ b/src/docs/user/installation_guide.diviner
@@ -70,7 +70,8 @@
You will also need:
- **MySQL**: You need MySQL. We strongly recommend MySQL 5.5 or newer.
- - **PHP**: You need PHP 5.2 or newer.
+ - **PHP**: You need PHP 5.2 or newer, but note that PHP 7 is
+ **not supported**.
You'll probably also need a **domain name**. In particular, you should read this
note:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 9:33 PM (1 w, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386522
Default Alt Text
D16231.id39046.diff (1 KB)
Attached To
Mode
D16231: Raise explicit setup issues about PHP 7
Attached
Detach File
Event Timeline
Log In to Comment