[bug-notifications] [php5_gd 0004374]: imagecreatefromjpeg(): './photo9.jpg' is not a valid JPEG

Mantis Bug Tracker noreply at opencsw.org
Fri Mar 16 01:03:19 CET 2012


The following issue has been CLOSED 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4374 
====================================================================== 
Reported By:                i5mast
Assigned To:                bwalton
====================================================================== 
Project:                    php5_gd
Issue ID:                   4374
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-03-26 15:38 CET
Last Modified:              2012-03-16 01:03 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.

====================================================================== 

---------------------------------------------------------------------- 
 (0009570) i5mast (reporter) - 2012-01-30 23:51
 https://www.opencsw.org/mantis/view.php?id=4374#c9570 
---------------------------------------------------------------------- 
Will this be on the 'testing' branch?



More information about the bug-notifications mailing list