Path: blob/master/src/applications/config/check/PhabricatorZipSetupCheck.php
12256 views
<?php12final class PhabricatorZipSetupCheck extends PhabricatorSetupCheck {34public function getDefaultGroup() {5return self::GROUP_OTHER;6}78protected function executeChecks() {9if (!extension_loaded('zip')) {10$message = pht(11'The PHP "zip" extension is not installed. This extension is '.12'required by certain data export operations, including exporting '.13'data to Excel.'.14"\n\n".15'To clear this setup issue, install the extension and restart your '.16'webserver.'.17"\n\n".18'You may safely ignore this issue if you do not plan to export '.19'data in Zip archives or Excel spreadsheets, or intend to install '.20'the extension later.');2122$this->newIssue('extension.zip')23->setName(pht('Missing "zip" Extension'))24->setMessage($message)25->addPHPExtension('zip');26}27}28}293031