dongzhan7909 2014-04-29 13:51
浏览 59

无法重新声明_PEAR_call_destructors()

I totally understand, that there are lot of threads online about this issue, but I just don't seem to get it working, because a lot of them do not match with issue I'm having.

I'm integrating some custom code (written by random guy). When I run it, I get this:

PHP Fatal error: Cannot redeclare _PEAR_call_destructors() (previously declared in /var/www/my_project/classes/_externals/PEAR.php:773) in /usr/share/php/PEAR.php on line 777

And I understand the problem - the code includes its own PEAR.php with same (?) code, but earlier that the other from system includes.

So it throws me an error. How could I solve this problem? Is it possible to tell PHP to everide definitions and functions? I think that would do it.

I'm running PHP 5.3.10-1ubuntu3.11 with Suhosin-Patch (cli) Apache Apache/2.2.22

  • 写回答

4条回答 默认 最新

  • dss524049 2014-04-29 14:00
    关注

    I think you need to define your own include path with ini_set() in the code. I haven't faced this situation yet. I found this link:

    http://forums.uber.com.au/showthread.php?1851-PEAR-Fatal-error-Cannot-redeclare

    Hope this helps.

    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效