[bug-notifications] [php5_gd 0004374]: imagecreatefromjpeg(): './photo9.jpg' is not a valid JPEG
Mantis Bug Tracker
noreply at opencsw.org
Fri Mar 26 16:13:40 CET 2010
A NOTE has been added to this issue.
======================================================================
http://www.opencsw.org/bugtrack/view.php?id=4374
======================================================================
Reported By: i5mast
Assigned To:
======================================================================
Project: php5_gd
Issue ID: 4374
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-03-26 15:38 CET
Last Modified: 2010-03-26 16:13 CET
======================================================================
Summary: 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.
======================================================================
----------------------------------------------------------------------
(0007754) i5mast (reporter) - 2010-03-26 16:13
http://www.opencsw.org/bugtrack/view.php?id=4374#c7754
----------------------------------------------------------------------
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
More information about the bug-notifications
mailing list