cli : change the directory as soon as the cli object is created

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2985 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-08-03 08:17:52 +00:00
parent 7923f40dd7
commit 901bc4ddc0

View File

@@ -22,6 +22,8 @@ class cli
/** The construtor define the catching of the errors */
public function __construct ()
{
$launcher = $argv[0];
chdir (dirname ($argv[0])."/..");
// Catch the trigger_errors and display them politely
set_error_handler(array(&$this, "cliErrorHandler"));
}