Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/view/PhabricatorSetupIssueView.php
| Show All 20 Lines | $description[] = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'setup-issue-instructions', | 'class' => 'setup-issue-instructions', | ||||
| ), | ), | ||||
| phutil_escape_html_newlines($issue->getMessage())); | phutil_escape_html_newlines($issue->getMessage())); | ||||
| $configs = $issue->getPHPConfig(); | $configs = $issue->getPHPConfig(); | ||||
| if ($configs) { | if ($configs) { | ||||
| $description[] = $this->renderPHPConfig($configs); | $description[] = $this->renderPHPConfig($configs, $issue); | ||||
| } | } | ||||
| $configs = $issue->getMySQLConfig(); | $configs = $issue->getMySQLConfig(); | ||||
| if ($configs) { | if ($configs) { | ||||
| $description[] = $this->renderMySQLConfig($configs); | $description[] = $this->renderMySQLConfig($configs); | ||||
| } | } | ||||
| $configs = $issue->getPhabricatorConfig(); | $configs = $issue->getPhabricatorConfig(); | ||||
| ▲ Show 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | return phutil_tag( | ||||
| array( | array( | ||||
| $table_info, | $table_info, | ||||
| $table, | $table, | ||||
| $update_info, | $update_info, | ||||
| $update, | $update, | ||||
| )); | )); | ||||
| } | } | ||||
| private function renderPHPConfig(array $configs) { | private function renderPHPConfig(array $configs, $issue) { | ||||
| $table_info = phutil_tag( | $table_info = phutil_tag( | ||||
| 'p', | 'p', | ||||
| array(), | array(), | ||||
| pht( | pht( | ||||
| 'The current PHP configuration has these %d value(s):', | 'The current PHP configuration has these %d value(s):', | ||||
| count($configs))); | count($configs))); | ||||
| $dict = array(); | $dict = array(); | ||||
| foreach ($configs as $key) { | foreach ($configs as $key) { | ||||
| $dict[$key] = ini_get($key); | $dict[$key] = $issue->getPHPConfigOriginalValue( | ||||
| $key, | |||||
| ini_get($key)); | |||||
| } | } | ||||
| $table = $this->renderValueTable($dict); | $table = $this->renderValueTable($dict); | ||||
| ob_start(); | ob_start(); | ||||
| phpinfo(); | phpinfo(); | ||||
| $phpinfo = ob_get_clean(); | $phpinfo = ob_get_clean(); | ||||
| ▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines | |||||