2

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

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

4

1 回答 1

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

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

于 2013-05-30T02:12:17.970 回答