From 901bc4ddc0bd0b7cf8d0c9088eea68138ff5ed71 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 3 Aug 2016 08:17:52 +0000 Subject: [PATCH] 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 --- cli.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli.php b/cli.php index 1c0a1c4..d693899 100644 --- a/cli.php +++ b/cli.php @@ -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")); }