HomePhorge

Use libphutil script initializer to initialize scripts in Phabricator

Description

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

Details

Provenance
epriestleyAuthored on Mar 19 2012, 7:21 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP1fc4dea55e91: Increase the click target area for the object selector
Branches
Loading...
Tags
Loading...

Event Timeline