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:
2
cli.php
2
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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user