e107_handlers/mail_validation_class.php
Consider simplifying this complex logical expression. Open
Open
if($this->VerifyResultLines($connection,"220")>0
&& $this->PutLine($connection,"HELO $localhost")
&& $this->VerifyResultLines($connection,"250")>0
&& $this->PutLine($connection,"MAIL FROM: <$localuser@$localhost>")
&& $this->VerifyResultLines($connection,"250")>0
Argument 2 (str2)
is ?string
but \strcmp()
takes string
Open
Open
&& !strcmp(@gethostbyname($this->exclude_address),$ip))
- Exclude checks
Argument 1 (hostname)
is null
but \gethostbyname()
takes string
Open
Open
if(!strcmp($ip=@gethostbyname($domain),$domain))
- Exclude checks
Argument 1 (hostname)
is ?string
but \fsockopen()
takes string
Open
Open
if(($connection=($this->timeout ? @fsockopen($ip,25,$errno,$error,$this->timeout) : @fsockopen($ip,25))))
- Exclude checks
Argument 2 (subject)
is null
but \preg_match()
takes string
Open
Open
if(preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/',$domain))
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$this->OutputDebug("Could not resolve host name \"".$hosts[$host]."\".");
- Exclude checks
When appending to a value of type array{},
found an array access index of type null,
but expected the index to be of type int|string
Open
Open
$mxhosts[$weights[$host]]=$hosts[$host];
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$this->OutputDebug("Host address of \"".$hosts[$host]."\" is the exclude address");
- Exclude checks
Argument 2 (str2)
is null
but \strcmp()
takes string
Open
Open
if(!strcmp($ip=@gethostbyname($domain),$domain))
- Exclude checks
Invalid offset 0
of array type array{}
Open
Open
$mxhosts[$weights[$host]]=$hosts[$host];
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$this->OutputDebug("Resolving host name \"".$hosts[$host]."\"...");
- Exclude checks