Php Pear中的Text_Diff-不推荐通过引用分配new的返回值
我尝试使用Text_Diff-我以前使用过,但那是很久以前的事了。 我安装了PEAR,然后安装了Horde Text_Diff 我必须更新到pear的路径,但成功完成后,我现在收到以下消息:Php Pear中的Text_Diff-不推荐通过引用分配new的返回值,php,linux,pear,Php,Linux,Pear,我尝试使用Text_Diff-我以前使用过,但那是很久以前的事了。 我安装了PEAR,然后安装了Horde 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
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
我已经为这个问题寻找了解决方案,并且找到了很多关于这个问题的信息,但是还没有任何结果
第一个解决方案:
我发现了一些关于&被弃用的信息,所以我尝试删除&在我得到指示的地方,但这不起作用
接下来,我尝试卸载所有内容,然后重新安装。我这样做了,重新启动了我的web服务器,但问题仍然存在
以下是我的一些服务器信息:
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中修复;请参阅。实际产生此错误的代码是什么?尽量把它弄小。