Project

General

Profile

Bug #16550 ยป php_isexecutable_fix.diff

Administrator Admin, 2006-09-11 11:57

View differences:

t3lib/class.t3lib_exec.php (Arbeitskopie)
return true;
}
} else { // UNIX
if (@is_executable($path.$cmd)) {
if (@is_executable($path.$cmd) || @is_link($path.$cmd)) {
$T3_VAR['t3lib_exec']['apps'][$cmd]['app'] = $cmd;
$T3_VAR['t3lib_exec']['apps'][$cmd]['path'] = $path;
$T3_VAR['t3lib_exec']['apps'][$cmd]['valid'] = true;
......
if (TYPO3_OS!='WIN') {
$cmd = @exec ('which '.$cmd);
if (@is_executable($cmd)) {
if (@is_executable($cmd) || @is_link($cmd)) {
$T3_VAR['t3lib_exec']['apps'][$cmd]['app'] = $cmd;
$T3_VAR['t3lib_exec']['apps'][$cmd]['path'] = dirname($cmd).'/';
$T3_VAR['t3lib_exec']['apps'][$cmd]['valid'] = true;
typo3/mod/tools/em/class.em_index.php (Arbeitskopie)
'name' => $relFileName,
'size' => filesize($file),
'mtime' => filemtime($file),
'is_executable' => (TYPO3_OS=='WIN' ? 0 : is_executable($file)),
'is_executable' => (TYPO3_OS=='WIN' ? 0 : (is_executable($file) || is_link($file))),
'content' => t3lib_div::getUrl($file)
);
if (t3lib_div::inList('php,inc',strtolower($fI['extension']))) {
typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
if (TYPO3_OS=='WIN') {
$this->message($ext, 'Sendmail program not searched for on Windows',"",1);
} else {
if (!@is_executable($prg)) {
if (!@is_executable($prg) && !@is_link($prg)) {
$this->message($ext, 'Sendmail program not found or not executable?',"
<i>sendmail_path=".ini_get('sendmail_path')."</i>
This may be critical to TYPO3's use of the mail() function. Please be sure that the mail() function in your php-installation works!
    (1-1/1)