X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fcommandline.inc;h=392166a98088dae0ca2f563b0a1709b68ccc7e9b;hb=ab93bb009c8533c8847aafe76ba9774d9d74e7ca;hp=d7ee1588017bbf9c35a2ace7ca2cc4f9483d6a77;hpb=0a4e1e0f1bcdded5dfeb9ac560a689c3bd60aa5a;p=quix0rs-gnu-social.git diff --git a/scripts/commandline.inc b/scripts/commandline.inc index d7ee158801..392166a980 100644 --- a/scripts/commandline.inc +++ b/scripts/commandline.inc @@ -29,12 +29,15 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { define('GNUSOCIAL', true); define('STATUSNET', true); //compatibility +define('GNUSOCIAL_CLI', true); // to know we're in a CLI environment + // Set various flags so we don't time out on long-running processes ini_set("max_execution_time", "0"); ini_set("max_input_time", "0"); set_time_limit(0); mb_internal_encoding('UTF-8'); +error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED); // Add extlib to our path so we can get Console_Getopt