#981 1.8 installationscript crashes on Windoze

BRANCH-1-8_(CVS)
closed-fixed
mose
5
2003-11-02
2003-10-28
W van der Ploeg
No

See code below :
$separator = '';
$current_path = ini_get('include_path');

if (strstr($current_path, ';')) {
$separator = ';';
} else {
$separator = ':';
}

if ($separator == '')
$separator = ':'; // guess

When there is no current_path, or the current path is
only the '.', the script fails. Maybe it's better to test if
there is a ':' or ';' in the PATH environment variable
instead of the include path ?
(BTW, is there a way to check the os system ?
Searched the PHP docs but could not find it).

Discussion

  • mose
    mose
    2003-11-02

    • assigned_to: nobody --> mose
    • status: open --> closed-fixed
     
  • mose
    mose
    2003-11-02

    Logged In: YES
    user_id=8021

    fixed in HEAD, with using isWindows() function
    (defined a little upper in the same file).