Summary: We do this in Windows, but it's not available by default in Ubuntu
Test Plan: Ran "arc" after faking the function name, got a reasonable error.
Reviewers: btrahan, jungejason
Reviewed By: btrahan
CC: aran
Differential Revision: https://secure.phabricator.com/D2404
);
} else {
$need_functions = array(
- 'json_decode' => array('flag', '--without-json'),
+ 'curl_init' => array(
+ 'text',
+ "You need to install the cURL PHP extension, maybe with ".
+ "'apt-get install php5-curl' or 'yum install php53-curl' or ".
+ "something similar."),
+ 'json_decode' => array('flag', '--without-json'),
);
}
"'extension={$which}'.";
}
+ if ($what == 'text') {
+ $generic = false;
+ $problems[] = $which;
+ }
+
if ($generic) {
$problems[] =
"This build of PHP is missing the required function '{$fname}()'. ".