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

Mantis Bug Tracker noreply at opencsw.org
Fri Mar 26 15:38:59 CET 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://www.opencsw.org/mantis/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 15:38 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. 
======================================================================



More information about the bug-notifications mailing list