php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55816 Some GD function stop working in 5.3.8
Submitted: 2011-09-29 19:45 UTC Modified: 2011-09-29 21:56 UTC
From: mysql dot jorge at decimal dot pt Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.3.8 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mysql dot jorge at decimal dot pt
New email:
PHP Version: OS:

 

 [2011-09-29 19:45 UTC] mysql dot jorge at decimal dot pt
Description:
------------
Howdy,

After an upgrade from 5.3.6 to 5.3.8, some stuff stop working.
I have a few installation from opencart & prestashop software, and after this upgrade the upload images just stop working.
I did some tests with the resize from the GD functions, and sometimes it worked others not.

The most reliable test to reproduce this problem, was to perform a clean install of the last stable version of both Prestashop & Opencart software.
When using 5.3.6 it works, using 5.3.8 doesn't.

I don't have any error on the screen...
How can I help to solve/debug this problem?

Test script:
---------------
http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/

<?php
   include('SimpleImage.php');
   $image = new SimpleImage();
   $image->load('picture.jpg');
   $image->scale(50);
   $image->save('picture2.jpg');
?>

Sometimes the image get's with zero bytes.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-29 19:47 UTC] aharvey@php.net
-Status: Open +Status: Feedback
 [2011-09-29 19:47 UTC] aharvey@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

Please provide a simple, standalone test script.
 [2011-09-29 21:52 UTC] mysql dot jorge at decimal dot pt
-Status: Feedback +Status: Open
 [2011-09-29 21:52 UTC] mysql dot jorge at decimal dot pt
Howdy,

I'm sorry, after i wrote this I found out that the libgd on the system was outdated, as it was throwing an error when i executed the test script manually.

--
gd-jpeg: JPEG  library reports unrecoverable error: Wrong JPEG library version: 
library is 80, caller expects 62
--

After I saw this, it was easy to related it to libgd.

Thanks and sorry the the open bug. You can close it now.

Jorge,
 [2011-09-29 21:56 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2011-09-29 21:56 UTC] aharvey@php.net
No problem. Thanks for getting back to us so quickly!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Dec 14 10:00:01 2025 UTC