cli : argv must be global to be used
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2991 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
1
cli.php
1
cli.php
@@ -22,6 +22,7 @@ class cli
|
|||||||
/** The construtor define the catching of the errors */
|
/** The construtor define the catching of the errors */
|
||||||
public function __construct ()
|
public function __construct ()
|
||||||
{
|
{
|
||||||
|
global $argv;
|
||||||
$launcher = $argv[0];
|
$launcher = $argv[0];
|
||||||
chdir (dirname ($argv[0])."/..");
|
chdir (dirname ($argv[0])."/..");
|
||||||
// Catch the trigger_errors and display them politely
|
// Catch the trigger_errors and display them politely
|
||||||
|
|||||||
Reference in New Issue
Block a user