mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-09 16:32:39 +01:00
Don't try to call library functions during arc sanity checking
Summary: These functions won't exist yet. See 7e2df9a5bf (commitcomment-9172274)
Test Plan: Faked a fatal, ran `arc`, got message.
Reviewers: joshuaspence, chad, btrahan
Reviewed By: btrahan
Subscribers: epriestley
Differential Revision: https://secure.phabricator.com/D11254
This commit is contained in:
parent
439413ae29
commit
2035330780
1 changed files with 8 additions and 4 deletions
|
@ -510,10 +510,14 @@ function sanity_check_environment() {
|
|||
}
|
||||
|
||||
function die_with_bad_php($message) {
|
||||
echo phutil_console_format(
|
||||
"\n%s\n\n%s\n\n",
|
||||
pht('PHP CONFIGURATION ERRORS'),
|
||||
$message);
|
||||
// NOTE: We're bailing because PHP is broken. We can't call any library
|
||||
// functions because they won't be loaded yet.
|
||||
|
||||
echo "\n";
|
||||
echo 'PHP CONFIGURATION ERRORS';
|
||||
echo "\n\n";
|
||||
echo $message;
|
||||
echo "\n\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue