Using PEAR package Horde_Text_Diff

2020-02-14 07:36发布

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

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.

Is this how PEAR packages are supposed to work?

1条回答
劳资没心,怎么记你
2楼-- · 2020-02-14 08:38

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.

查看更多
登录 后发表回答