我正在字符串中使用Text_Diff-我以前使用过它,但那是很久以前的事了。我安装了PEAR,然后安装了部落Text_Diff。。
我不得不更新我的pear路径,但在成功完成后,我现在收到了以下消息:
Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/php54/lib/php/pear/Text/Diff.php on line 383
Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/php54/lib/php/pear/Text/Diff.php on line 405
Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/php54/lib/php/pear/Text/Diff.php on line 427
Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/php54/lib/php/pear/Text/Diff.php on line 449
Fatal error: Class 'Horde_Text_Diff' not found in /home/key88crazy/reviewmypractice.com/merge/canvis/diff.php on line 10
我已经为此寻找了解决方案,并找到了很多关于这个问题的信息,但还没有任何结果。
第一个解决方案:我发现了一些关于&被弃用,所以我试图删除&在那里我得到了指示,但那不起作用。
接下来,我尝试卸载所有内容,然后重新安装。我这样做了,重新启动了我的网络服务器,但问题仍然存在。
以下是我的一些服务器信息:
php -v
PHP 5.4.37 (cli) (built: Feb 8 2015 08:55:06)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"
NAME="Ubuntu"
VERSION="12.04.5 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.5 LTS)"
VERSION_ID="12.04"
最后,丢失类的致命错误是第一个问题的一部分吗?
此问题已在Text_Diff 1.2.0版本中修复;请参阅变更日志。