Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Dokeos警告:严格标准_Php_Warnings_Standards_Strict - Fatal编程技术网

Php Dokeos警告:严格标准

Php Dokeos警告:严格标准,php,warnings,standards,strict,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 Standar

将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

如何解决这个问题?

如果您可以访问php.ini,请检查
错误报告
选项是否包含严格的错误级别。如果是,请将其拆下。如果您没有访问php.ini的权限,请添加
error\u reporting(error\u reporting()&~E\u STRICT)在应用程序代码中(例如主PHP条目文件)。

如果有更新的版本,请尝试升级到它。dokeos应该完全重写。。。意大利面代码规则。。。如果您真的想使用它,您应该禁用php中的display_error confis是否可以安全地删除错误报告?它能正常工作吗?@bagz_-man你只是从你的错误报告中删除了E_-STRICT消息,这些消息只是建议,而不是真正的错误。正如文档所述:
STRICT消息将帮助您使用最新和最好的建议编码方法,例如警告您使用不推荐使用的函数。