Skip to content

Commit

Permalink
fix(install): avoid warnings
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
btry committed Sep 10, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d186ef3 commit b171ef3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions scripts/cliinstall.php
Original file line number Diff line number Diff line change
@@ -31,6 +31,10 @@
* ---------------------------------------------------------------------
*/

(PHP_SAPI == 'cli') or die("Only available from command line");

chdir(dirname($_SERVER["SCRIPT_FILENAME"]));

include (__DIR__ . "/../vendor/docopt/docopt/src/docopt.php");

$doc = <<<DOC
@@ -62,6 +66,11 @@
}
}

// Prevent problem of execution time
ini_set("max_execution_time", "0");
ini_set("memory_limit", "-1");
ini_set("session.use_cookies", "0");

include (__DIR__ . "/../../../inc/includes.php");

// Init debug variable
@@ -77,11 +86,6 @@
error_reporting(E_ALL | E_STRICT);
//set_error_handler('userErrorHandlerDebug');

// Prevent problem of execution time
ini_set("max_execution_time", "0");
ini_set("memory_limit", "-1");
ini_set("session.use_cookies", "0");

$DB = new DB();
if (!$DB->connected) {
die("No DB connection\n");

0 comments on commit b171ef3

Please sign in to comment.