Issues

ZF-12093: Cannot parse a font with path

Description

PHP Version 5.4.0-ZS5.6.0 ZF Version 1.11.11 CODE: $fontPath = realpath("fonts/FuturaStd.ttf"); $this->_font = Zend_Pdf_Font::fontWithPath( $fontPath );

ERROR: Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /usr/local/zend/share/ZendFramework/library/Zend/Pdf/FileParserDataSource/File.php on line 41

Comments

Fixed in trunk (1.12.0): r24806

Hi Adam. I think backporting weierophinney's zf2 doccomment will be better. https://github.com/zendframework/zf2/…