System or local when installing PEAR for PHPUnit

社会主义新天地 提交于 2019-12-04 18:40:16

PEAR is usually installed system-wide. The benefit of this is that the various packages can be reused between different projects.

One reason why you might install a local copy of PEAR is that the administrator[s] of the server you are installing on might be reluctant to install additional packages or upgrade existing ones.

By performing a local install of PEAR you can choose the location of where the PEAR installer places the packages/PEAR code that you install.

So, another reason for installing local, even multiple, copies of PEAR is to have separate installs for each project you might be working on, though using Composer in this scenario is much more common place.

Naturally if you do install a local copy of PEAR then you will need to adjust your include-path accordingly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!