加载读/新消息时出现Squirrelmail错误


Squirrelmail ERROR when loading read/new messages

我能够成功安装我的webmail客户端;但是,每次我加载消息....时,我都会收到下面列出的这些错误以前有人遇到过这样的错误吗?如果是这样,我该如何解决它?提前感谢!

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

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

参考:PHP 5禁用严格标准错误