简体   繁体   English

从PHP5.3升级到PHP5.4时需要重新安装pear和phing吗?

[英]Do I need to reinstall pear and phing when I upgrade from PHP5.3 to PHP5.4 ?

我可以将旧的pear和phing文件夹复制到PHP5.4文件夹吗?

No, you can't do that. 不,你不能那样做。

Two reasons: 两个原因:

  • PEAR allows packages to modify the package's PHP code during installation, eg to put the path of files directly into the code. PEAR允许软件包在安装过程中修改软件包的PHP代码,例如将文件路径直接放入代码中。 When moving files, those now hard-coded paths break. 移动文件时,那些现在已硬编码的路径会中断。
  • The PEAR registry and configuration files have full paths in them. PEAR注册表和配置文件中包含完整路径。 Moving the files breaks them. 移动文件会破坏它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM