在xampp上设置Built2Go汽车经销商时弃用错误

时间:2011-03-08 02:30:20

标签: php

大家好我想在我的网站上设置Built2Go汽车经销商,甚至我已按照所有说明正确设置config.php ...我在index.php上尝试安装时仍然收到以下错误Built2Go汽车经销商...我如何解决它们?

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\speedyautos\install.php on line 185

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\speedyautos\admincp\func.php on line 434

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\speedyautos\admincp\system_cls.php on line 171

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\speedyautos\admincp\system_cls.php on line 173

Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\speedyautos\admincp\system_cls.php on line 152

Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\speedyautos\admincp\system_cls.php on line 177

Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\speedyautos\admincp\func.php on line 447

有什么帮助吗?

2 个答案:

答案 0 :(得分:2)

“已弃用”警告表示语言(PHP)已经移动,不建议再使用某些功能或功能。实际上,现在标记为已弃用的任何内容几乎肯定会在不久的将来更新中完全删除。

这意味着该软件已暂时与PHP的开发脱节,并且尚未更新到最新的编码标准。这是作者需要解决的问题,或者软件将/可能会停止在较新版本的PHP上工作。目前,您可以使用error_reporting(E_ALL ^ E_DEPRECATED)取消这些消息,但这不是长期解决方案

答案 1 :(得分:2)

这些功能在PHP 5.26+中已弃用,最终将完全删除。 eregi()正在替换preg_match()。除非您打算修改此应用程序的源代码,否则您将不得不使用弃用警告。

如果错误显示在屏幕上,而不是错误日志中,则应在display_errors = off中为生产系统转换php.ini。要防止弃用错误显示在任何地方,甚至是日志,请使用error_reporting = E_ALL ^ E_DEPRECATED