From 2035330780a4745b1b3b92644819c405aa7698b4 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 6 Jan 2015 09:53:11 -0800 Subject: [PATCH] Don't try to call library functions during arc sanity checking Summary: These functions won't exist yet. See https://github.com/phacility/arcanist/commit/7e2df9a5bfc635b77c6412ef5a6569edd0e4e138#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 --- scripts/arcanist.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/arcanist.php b/scripts/arcanist.php index cc49c9e3..dc22d7b6 100755 --- a/scripts/arcanist.php +++ b/scripts/arcanist.php @@ -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); } -- 2.43.0