From 97194883b8f1ead5943a5f5bc5cee7ee0fc25557 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 3 Aug 2016 11:49:41 +0000 Subject: [PATCH] cli : argv must be global to be used git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2991 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- cli.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cli.php b/cli.php index d693899..70d2711 100644 --- a/cli.php +++ b/cli.php @@ -22,6 +22,7 @@ class cli /** The construtor define the catching of the errors */ public function __construct () { + global $argv; $launcher = $argv[0]; chdir (dirname ($argv[0])."/.."); // Catch the trigger_errors and display them politely