Summary: See D3661.
Test Plan:
$ arc diff --raw
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Maniphest Tasks: T1261
Differential Revision: https://secure.phabricator.com/D3662
if ($must_load) {
throw new ArcanistUsageException($error);
} else {
- file_put_contents(
- 'php://stderr',
- phutil_console_wrap('WARNING: '.$error."\n\n"));
+ fwrite(STDERR, phutil_console_wrap('WARNING: '.$error."\n\n"));
}
} catch (PhutilLibraryConflictException $ex) {
if ($ex->getLibrary() != 'arcanist') {
private function log($message) {
if ($this->verbose) {
- file_put_contents('php://stderr', $message."\n");
+ fwrite(STDERR, $message."\n");
}
}
* @return void
*/
protected function writeStatusMessage($msg) {
- file_put_contents('php://stderr', $msg);
+ fwrite(STDERR, $msg);
}
protected function isHistoryImmutable() {
if ($is_raw) {
if ($this->getArgument('raw')) {
- file_put_contents('php://stderr', "Reading diff from stdin...\n");
+ fwrite(STDERR, "Reading diff from stdin...\n");
$raw_diff = file_get_contents('php://stdin');
} else if ($this->getArgument('raw-command')) {
list($raw_diff) = execx($this->getArgument('raw-command'));