1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00
phorge-phorge/scripts
epriestley 097e62b45c 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
2012-03-19 19:21:10 -07:00
..
aphront Create script printing controller name based on URL 2012-03-01 15:17:50 -08:00
conduit Encode "<" and ">" in JSON/Ajax responses to prevent content-sniffing attacks 2012-02-14 14:51:51 -08:00
daemon Merge __init_env__.php into __init_script__.php 2011-10-02 11:48:09 -07:00
drydock Move resource allocation to task queue 2012-01-24 09:44:14 -08:00
install Minor, remove metamta reference from update script. 2012-03-02 06:42:31 -08:00
mail Provide upgrade script for transition away from Meta MTA daemon 2012-03-05 15:15:19 -08:00
repository Provide a script to "undo" the negative effects of an accidental push in Differential 2012-03-13 11:18:22 -07:00
search Merge __init_env__.php into __init_script__.php 2011-10-02 11:48:09 -07:00
setup Test for pcntl availability from the command line, not Apache 2011-05-30 21:02:08 -07:00
sql Add a little SQL-info script that is sort of useful maybe? 2012-03-15 14:16:40 -07:00
symbols Document how to use the symbol importer 2011-12-22 06:45:59 -08:00
user Unify logic for username validation 2012-01-16 11:52:59 -08:00
util Add a script to programmatically add image macros 2012-03-09 08:55:11 -08:00
__init_env__.php Fix __init_script__.php issue with event engine. 2011-09-30 13:17:45 -07:00
__init_script__.php Use libphutil script initializer to initialize scripts in Phabricator 2012-03-19 19:21:10 -07:00
celerity_mapper.php Stabilize sort in celerity map 2012-03-15 11:08:14 -07:00