X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fcommandline.inc.php;h=5f2e1d86eafaedfadab8b2d2e2e6f39d12a33401;hb=dd03e55e125c357eeaeca5eb41d04e7c031824c2;hp=d7ee1588017bbf9c35a2ace7ca2cc4f9483d6a77;hpb=c259d04137dd8385996f8c641a7cfdc21406e22b;p=quix0rs-gnu-social.git diff --git a/scripts/commandline.inc.php b/scripts/commandline.inc.php index d7ee158801..5f2e1d86ea 100644 --- a/scripts/commandline.inc.php +++ b/scripts/commandline.inc.php @@ -29,12 +29,16 @@ 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(0); +# DEBUG: error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED); // Add extlib to our path so we can get Console_Getopt