php7下运行, Text_Diff 类无法使用,怎么解决?

php7下运行, Text_Diff  类无法使用,怎么解决?
 
提示如下:
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Text_Diff has a deprecated constructor in E:\web\system\Services\Text\Diff.php on line 18
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Text_MappedDiff has a deprecated constructor in E:\web\system\Services\Text\Diff.php on line 289
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Text_Diff_Op_copy has a deprecated constructor in E:\web\system\Services\Text\Diff.php on line 367
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Text_Diff_Op_delete has a deprecated constructor in E:\web\system\Services\Text\Diff.php on line 392
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Text_Diff_Op_add has a deprecated constructor in E:\web\system\Services\Text\Diff.php on line 414
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Text_Diff_Op_change has a deprecated constructor in E:\web\system\Services\Text\Diff.php on line 436
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Text_Diff_Renderer has a deprecated constructor in E:\web\system\Services\Text\Diff\Renderer.php on line 15
已邀请:

该问题目前已经被锁定, 无法添加新回复