Take a look it very easy, the function :
PHP:
function smtp_check(){
$apdomain = $this->domain();
$f = @fsockopen($apdomain, 25) ;
if ($f !== false) {
$res = fread($f, 1024) ;
if (strlen($res) > 0 && strpos($res, '220') === 0) {
return TRUE;
}
else {
return FALSE ;
}
}
@fclose($f);
return FALSE;
}
Should be that way
PHP:
function smtp_check(){
$apdomain = $this->domain();
$f = @fsockopen($apdomain, 25) ;
if ($f !== false) {
$res = fread($f, 1024) ;
if (strlen($res) > 0 && strpos($res, '220') === 0) {
return TRUE;
}
else {
return FALSE ;
}
@fclose($f);
}
return FALSE;
}
The original code try to close a resource (a file) that can be a bool, the fclose must be within the if($f !== false) not outside, try to correct the file and retry your installation