#36726 [Asn->Bgs]: imagecreatefromjpeg() crahes PHP
| From: | pajoye@php.net | Date: | Sat, 18 Mar 2006 22:24:11 +0000 |
| Subject: | #36726 [Asn->Bgs]: imagecreatefromjpeg() crahes PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94550@lists.php.net to get a copy of this message | ||
ID: 36726
Updated by: pajoye@php.net
Reported By: christoph at ziegenberg dot com
-Status: Assigned
+Status: Bogus
Bug Type: GD related
Operating System: Suse Linux 9.3
PHP Version: 5.1.2
Assigned To: pajoye
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
All images work well for me. You can try yourself with this script, put
all your images in a 36726 folder and run this script:
$basedir = "./36726/";
$images = array('14844.jpg', '18925.jpg', '21987.jpg');
foreach ($images as $a) {
$im = imagecreatefromjpeg($basedir . $a);
imagejpeg($im, $basedir . "$a.2.jpeg");
echo "$a done\n";
}
Be sure to use the bundled GD ("configure --with-gd").
Previous Comments:
------------------------------------------------------------------------
[2006-03-18 18:40:55] christoph at ziegenberg dot com
I uploaded the images and a testscript.
Look here: http://www.ziegenberg.com/jpegbug/
------------------------------------------------------------------------
[2006-03-13 22:59:31] pajoye@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Please give us an image to reproduce your problem.
------------------------------------------------------------------------
[2006-03-13 22:37:23] christoph at ziegenberg dot com
Description:
------------
Using imagecreatefromjpeg() lets PHP crash without an error message.
also using @imagecreatefromjpeg() doesn't help - it's not possible to
check the returning value.
I the user comments a user already described problems with jpegs
created by "Canon PowerShot S70", my image (uploaded by a user) was
created by a "Canon PowerShot A400". So this seems to be the problem.
It worked on my Windows XP without any problem, but on Suse it
crashed...
Reproduce code:
---------------
I'll ask the user to upload the picture here. Then simply call
imagecreatefromjpeg() with this image.
Expected result:
----------------
No crash, but an error message and an empty return value.
Actual result:
--------------
Crash
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36726&edit=1