当我尝试创建PDF发票时(因为我的客户正在运行PHP 5.4.19),Magento抛出了一个PHP错误。
Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /var/www/vhosts/website/httpdocs/includes/src/Zend_Pdf_FileParserDataSource_File.php on line 41
通常情况下,通过编辑FileParserDataSource.php并注释掉两行即可轻松解决此问题。但问题是他们运行一个扩展此脚本的Zend_Pdf_FileParserDataSource_File.php (http://pastebin.com/J64VNsRP)。
是否有任何解决方案,可以在运行PHP 5.4的服务器上使用Magento创建PDF发票?