Zend框架,发生错误应用程序错误&* @method $this setCharset($charset)——不能重新


Zend framework, An error occurred Application error & * @method $this setCharset($charset) --can not re-declare setCharest

当我将Zend库导入我的ZendStudio时,它显示了HeadMeta.php文件中的错误-> * @method $this setCharset($charset)

错误是"Cannot re-declare method 'setCharset' in type 'Zend_View_Helper_HeadMeta' HeadMeta.php/hspzf/library/Zend/View/Helper line 43 PHP Semantic Problem"

我想尝试连接MySQL数据库,但它显示发生错误应用程序错误在index.phtml

谁能告诉我怎么解决这个问题?

看起来像是这次提交时引入的一个bug。

library/Zend/View/Helper/HeadMeta.php

@method为提示魔术方法。我不知道采埃孚团队怎么没发现。我想你可以删掉这一行。

 * @method $this setCharset($charset)