Changeset View
Changeset View
Standalone View
Standalone View
support/init/init-script.php
Show All 9 Lines | function __arcanist_init_script__() { | ||||
// number of ways they can accomplish it legitimately; historically, we ran | // number of ways they can accomplish it legitimately; historically, we ran | ||||
// into this on only one install which had some bizarre configuration, but it | // into this on only one install which had some bizarre configuration, but it | ||||
// was difficult to diagnose because the symptom is "no messages of any | // was difficult to diagnose because the symptom is "no messages of any | ||||
// kind"). | // kind"). | ||||
while (ob_get_level() > 0) { | while (ob_get_level() > 0) { | ||||
ob_end_clean(); | ob_end_clean(); | ||||
} | } | ||||
error_reporting(E_ALL | E_STRICT); | error_reporting(E_ALL); | ||||
$config_map = array( | $config_map = array( | ||||
// Always display script errors. Without this, they may not appear, which is | // Always display script errors. Without this, they may not appear, which is | ||||
// unhelpful when users encounter a problem. On the web this is a security | // unhelpful when users encounter a problem. On the web this is a security | ||||
// concern because you don't want to expose errors to clients, but in a | // concern because you don't want to expose errors to clients, but in a | ||||
// script context we always want to show errors. | // script context we always want to show errors. | ||||
'display_errors' => true, | 'display_errors' => true, | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0