我能够成功安装我的网络邮件客户端;但是每次加载消息时我都会收到下面列出的这些错误....有没有人遇到过这样的错误?如果是这样我怎么去解决它?提前谢谢!
Strict Standards: Non-static method Message::parseStructure() should not be called statically in C:\Apache24\htdocs\squirrelmail\functions\mime.php on line 36
Strict Standards: Non-static method Message::parseBodyStructure() should not be called statically in C:\Apache24\htdocs\squirrelmail\class\mime\Message.class.php on line 296
Warning: Creating default object from empty value in C:\Apache24\htdocs\squirrelmail\class\mime\Message.class.php on line 367
Warning: Creating default object from empty value in C:\Apache24\htdocs\squirrelmail\class\mime\Message.class.php on line 367
Warning: Variable passed to each() is not an array or object in C:\Apache24\htdocs\squirrelmail\functions\mime.php on line 1594
答案 0 :(得分:1)
将php.ini
更改为不严格。
error_reporting = E_ALL & ~E_STRICT
然后重启你的apache服务器。
甚至,您可以在PHP代码中执行此操作:
ini_set('display_errors', '0'); # don't show any errors...
error_reporting(E_ALL | E_STRICT); # ...but do log them