Project

General

Profile

Bug #14215 » 0000179-class.tx_install.php.diff

Administrator Admin, 2004-08-20 00:34

View differences:

home/mstucki/src/cvs/typo3_head/TYPO3core/typo3/sysext/install/mod/class.tx_install.php 2004-08-20 00:20:02.000000000 +0200
</form>
',0);
// Prevent 'Unable to fork' warning on Windows systems
if (TYPO3_OS=="WIN") {
exec("REM", $cmd_output, $cmd_return);
if ($cmd_return == 0) { // 0 means no error
$this->message($ext, "cmd.exe is executable", "", -1);
$this->config_array["cmd_exec"] = 1;
} else { // Could not even execute the REM internal command!
$comspec = getenv("COMSPEC");
$this->message($ext, "cmd.exe is not executable", "
On a Windows system, the user under which PHP is run must have execute permission for the command interpreter defined by the ComSpec environment variable (".$comspec.").
Another option is to put a copy of cmd.exe inside the directory in which PHP or the web server was started. Otherwise the 'Unable to fork' warning will be issued when trying to run ImageMagick.
",2);
}
}
}
/**
......
} else {
$formArray["gdlib"]=array(0);
}
if ($this->config_array["safemode"]) {
if ($this->config_array["safemode"] || !$this->config_array["cmd_exec"]) {
$formArray["disable_exec_function"]=array(1);
}
if ($this->config_array["im"]) {
(2-2/2)