OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004374 [php5_gd] regular use major always 2010-03-26 15:38 2012-03-16 01:03
Reporter i5mast View Status public  
Assigned To bwalton
Priority normal Resolution no change required  
Status closed  
Summary 0004374: imagecreatefromjpeg(): './photo9.jpg' is not a valid JPEG
Description I've just moved from a stable CSW branch to current. I'm receiving the following error as a result.

-bash-3.00$ cat t.php
<?
$img = imageCreateFromJpeg('./photo9.jpg');
?>

-bash-3.00$ php t.php
gd-jpeg: JPEG library reports unrecoverable error: Wrong JPEG library version: library is 62, caller expects 70
PHP Warning: imagecreatefromjpeg(): './photo9.jpg' is not a valid JPEG file in /export/home/webdev/t.php on line 2

Warning: imagecreatefromjpeg(): './photo9.jpg' is not a valid JPEG file in /export/home/webdev/t.php on line 2

-bash-3.00$ php -version
PHP 5.2.9 (cli) (built: May 6 2009 21:48:48)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

It looks like php gd extension was compiled against a different gd library.
Additional Information -bash-3.00$ grep VERSION /var/sadm/pkg/CSWphp5gd/pkginfo
VERSION=5.2.9,REV=2009.04.29
-bash-3.00$ grep VERSION /var/sadm/pkg/CSWgd/pkginfo
VERSION=2.0.35,REV=2010.02.16
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007753)
i5mast (reporter)
2010-03-26 15:43
edited on: 2010-03-26 15:49

-bash-3.00$ grep VERSION /var/sadm/pkg/CSWjpeg/pkginfo
VERSION=7,REV=2009.08.17
-bash-3.00$ ldd /opt/csw/php5/lib/php/extensions/no-debug-non-zts-20060613/gd.so | grep libjpeg
        libjpeg.so.62 => /opt/csw/lib/libjpeg.so.62
        libjpeg.so.7 => /opt/csw/lib/i386/libjpeg.so.7
-bash-3.00$ ldd /opt/csw/lib/libgd.so | grep jpeg
        libjpeg.so.7 => /opt/csw/lib/i386/libjpeg.so.7

(0007754)
i5mast (reporter)
2010-03-26 16:13

As a workaround I downgraded CSWgd package to 2.0.33.

-bash-3.00$ grep VERSION /var/sadm/pkg/CSWgd/pkginfo
VERSION=2.0.33
(0009560)
bwalton (administrator)
2012-01-29 16:18

This should be resolved with the latest package set. Can you confirm this?
(0009570)
i5mast (reporter)
2012-01-30 23:51

Will this be on the 'testing' branch?


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker