Dokeos警告:严格的标准

时间:2012-02-22 15:49:46

标签: php warnings standards strict

将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

如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

如果您有权访问php.ini,请检查error_reporting选项是否包含E_STRICT错误级别。如果是这样,请将其删除。如果您无法访问php.ini,请在应用程序代码中添加error_reporting(error_reporting() & ~E_STRICT);(例如主PHP条目文件)。