Klemen - 2014-01-26 11:03:03
Hello,
When using this class in PHP strict mode
error_reporting(E_ALL | E_STRICT);
A strict standards error is generated:
PHP Strict Standards: Non-static method pop3_class::SetConnection() should not be called statically, assuming $this from incompatible context in /pop3.php on line 726
Line 726 reads:
$pop3 = &pop3_class::SetConnection(0, $host, $this->pop3);
I changed it to:
$pop3_class = new pop3_class();
$pop3 = $pop3_class->SetConnection(0, $host, $this->pop3);
Seems to work fine and suppresses the strict standards notice.