Changeset View
Changeset View
Standalone View
Standalone View
scripts/arcanist.php
Context not available. | |||||
$user_config = $configuration_manager->readUserConfigurationFile(); | $user_config = $configuration_manager->readUserConfigurationFile(); | ||||
$config = new ArcanistConfiguration(); | $config = new ArcanistConfiguration(); | ||||
$command = strtolower($args[0]); | $command = @strtolower($args[0]); | ||||
$args = array_slice($args, 1); | $args = array_slice($args, 1); | ||||
$workflow = $config->selectWorkflow( | $workflow = $config->selectWorkflow( | ||||
$command, | $command, | ||||
Context not available. | |||||
phpinfo(INFO_GENERAL); | phpinfo(INFO_GENERAL); | ||||
$info = ob_get_clean(); | $info = ob_get_clean(); | ||||
$matches = null; | $matches = null; | ||||
if (preg_match('/^Configure Command =>\s*(.*?)$/m', $info, $matches)) { | if (@preg_match('/^Configure Command =>\s*(.*?)$/m', $info, $matches)) { | ||||
$config = $matches[1]; | $config = $matches[1]; | ||||
} | } | ||||
} | } | ||||
Context not available. | |||||
$generic = true; | $generic = true; | ||||
list($what, $which) = $resolution; | list($what, $which) = $resolution; | ||||
if ($what == 'flag' && strpos($config, $which) !== false) { | if ($what == 'flag' && @strpos($config, $which) !== false) { | ||||
$show_config = true; | $show_config = true; | ||||
$generic = false; | $generic = false; | ||||
$problems[] = | $problems[] = | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0