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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 11:01:31 2024 UTC