Using PEAR package Horde_Text_Diff(使用 PEAR 包 Horde_Text_Diff)
问题描述
我安装了 Horde_Text_Diff,它取代了 Text_Diff.这就是问题所在:当我尝试使用它时,它给了我:
I installed Horde_Text_Diff, which supersedes Text_Diff. Here's the problem: when I try to use it, it gives me:
Class 'Horde_Text_Diff_Engine_Native' not found
我查看了文件,看起来有十五个左右的类相互依赖,并且没有一个文件相互包含.我必须手动执行此操作吗?同样,大约有 15 个文件.
I looked at the files, and it looks like there are fifteen or so classes that depend on each other, and none of the files include each other. Do I have to do this manually? Again, there are about fifteen files.
PEAR 包应该是这样工作的吗?
Is this how PEAR packages are supposed to work?
推荐答案
您需要使用与 PSR-0 兼容的自动加载器,该自动加载器会在包含路径中可用时自动包含类.Horde 提供了一个,Horde_Autoloader.
You need to use a PSR-0 compatible autoloader that automatically includes classes when they are available from your include path. Horde provides one, Horde_Autoloader.
这篇关于使用 PEAR 包 Horde_Text_Diff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 PEAR 包 Horde_Text_Diff


基础教程推荐
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- php中的PDF导出 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- 将变量从树枝传递给 js 2022-01-01
- Web 服务器如何处理请求? 2021-01-01