Changeset View
Changeset View
Standalone View
Standalone View
src/runtime/ArcanistRuntime.php
Context not available. | |||||
// TODO: This is very, very hacky; we're trying to let errors like | // TODO: This is very, very hacky; we're trying to let errors like | ||||
// "you passed the wrong arguments" through but fall back to classic | // "you passed the wrong arguments" through but fall back to classic | ||||
// mode if the workflow itself doesn't exist. | // mode if the workflow itself doesn't exist. | ||||
if (!preg_match('/invalid command/i', $usage_exception->getMessage())) { | if (!@preg_match('/invalid command/i', $usage_exception->getMessage())) { | ||||
throw $usage_exception; | throw $usage_exception; | ||||
} | } | ||||
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]; | ||||
} | } | ||||
} | } | ||||
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; | ||||
$problems[] = sprintf( | $problems[] = sprintf( | ||||
'The build of PHP you are running was compiled with the configure '. | 'The build of PHP you are running was compiled with the configure '. | ||||
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