【问题标题】:Understanding Fatal error: Declaration of了解致命错误:声明
【发布时间】:2014-05-22 13:36:13
【问题描述】:

这个错误是什么意思? 应该怎么理解?

Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /www/htdocs/nether/http/123factuur/library/Zend/Pdf/FileParserDataSource/File.php on line 167 

【问题讨论】:

标签: php zend-framework


【解决方案1】:

基于http://www.magentocommerce.com/boards/viewthread/279601/,问题是针对 PHP 5.4 版本 1.11.12 之前的 Zend。在同一篇文章中存在解决方法:

复制 lib/Zend/Pdf/FileParserDataSource.php 文件。接下来,将副本移动到 app/code/local/Zend/Pdf/FileParserDataSource.php

改变

abstract public function __construct();

abstract public function __construct($filePath);

【讨论】:

    猜你喜欢
    • 2016-11-05
    • 1970-01-01
    • 2020-04-24
    • 1970-01-01
    • 1970-01-01
    • 2010-12-29
    • 2015-08-29
    • 2012-06-18
    • 1970-01-01
    相关资源
    最近更新 更多