From 097e62b45c734a4e109bcf8ba5e88f7684342097 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 19 Mar 2012 19:21:10 -0700 Subject: [PATCH] Use libphutil script initializer to initialize scripts in Phabricator Summary: libphutil has some basic environmental sanity checks that we should use when initializing scripts in Phabricator. Principally this: https://secure.phabricator.com/diffusion/PHU/browse/master/scripts/__init_script__.php;db643ee9f5f524e7$26 Without this, the default ini may set CLI errors to go to some logfile, which means exceptions aren't shown on stderr. See https://github.com/facebook/phabricator/issues/98/ Test Plan: - Ran "php -derror_log=/dev/null -f ./bin/phd debug adslkfnasdfnalks" prior to change; got confusing lack of output. - Ran "phd -derror_log=/dev/null -f ./bin/phd debug asdkflnaslfdnala" after change; got exception on stderr. Reviewers: btrahan, killermonk Reviewed By: btrahan CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1950 --- scripts/__init_script__.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/__init_script__.php b/scripts/__init_script__.php index fef1107998..1be63fd2cc 100644 --- a/scripts/__init_script__.php +++ b/scripts/__init_script__.php @@ -1,7 +1,7 @@