ZF-6715: PHP 5.3 RC and PDF Image Jpeg

Issue Type: Bug Created: 2009-05-18T09:43:06.000+0000 Last Updated: 2011-05-03T10:49:42.000+0000 Status: Resolved Fix version(s): - 1.9.6 (24/Nov/09)

Reporter: Daniel Hartmann (danielmitd) Assignee: Michelangelo van Dam (dragonbe) Tags: - Zend_Pdf

Related issues: - ZF-7818

Attachments: - patch6715.txt


8: Undefined index: JPG Support in /usr/local/lib/php/Zend/Pdf/Resource/Image/Jpeg.php on line 60

results in:

Fatal error: Uncaught exception 'Zend_Pdf_Exception' with message 'JPG support is not configured properly.' in /usr/local/lib/php/Zend/Pdf/Resource/Image/Jpeg.php:62

The options array of GD Version says:

array(11) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(false) ["T1Lib Support"]=> bool(true) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPEG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(true) }

So there is just a missing "E" in the if condition.


Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-05-18T09:58:08.000+0000

I assume that Alex will solve this one. Reassigned.

Posted by John Smith (johnsmith) on 2009-07-10T11:11:52.000+0000

this bug is still present in version 1.8.4 Setup: ZendFramework: 1.8.4 PHP 5.3.0 [GD Version] => bundled (2.0.34 compatible) [FreeType Support] => 1 [FreeType Linkage] => with freetype [T1Lib Support] => [GIF Read Support] => 1 [GIF Create Support] => 1 [JPEG Support] => 1 ...

should be a really easy fix? line 59 in ZendFramework/library/Zend/Pdf/Resource/Image/Jpeg.php add 'E' to JPG

Posted by Tobias Petry (ice-breaker) on 2009-09-11T15:12:41.000+0000

added patch. changed jpeg recognition to be string independent.

Posted by Thorsten Munsch (synthor) on 2009-10-28T04:22:42.000+0000

Still present in ZF 1.9.5 with PHP 5.3.0

Posted by Michelangelo van Dam (dragonbe) on 2011-05-03T10:49:42.000+0000

this issue was already addressed in revision 19038 (making it part of the 1.9.6 release w/ r19198)

Have you found an issue?

See the Overview section for more details.


© 2006-2022 by Zend by Perforce. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.