【发布时间】:2012-03-12 23:28:16
【问题描述】:
将 dokeos 2.1 安装到 htdocs 时,会显示如下警告:
Strict Standards: Declaration of SortableTableFromArray::get_table_data() should be compatible with that of SortableTable::get_table_data() in ...\dokeos\main\inc\lib\sortabletable.class.php on line 989
Strict Standards: Declaration of SortableTableFromArrayConfig::get_table_data() should be compatible with that of SortableTable::get_table_data() in ...\dokeos\main\inc\lib\sortabletable.class.php on line 1032
还有大约十个类似的警告:
Strict Standards: Only variables should be passed by reference in ...\dokeos\main\inc\lib\internationalization.lib.php on line 203
如何解决?
【问题讨论】:
-
如果有更新的版本,请尝试升级到它。
-
dokeos 应该完全重写......意大利面条代码规则......如果你真的想使用它,你应该在你的 php conf 中禁用 display_error
标签: php warnings standards strict