Edit report at https://bugs.php.net/bug.php?id=55816&edit=1

 ID:                 55816
 User updated by:    mysql dot jorge at decimal dot pt
 Reported by:        mysql dot jorge at decimal dot pt
 Summary:            Some GD function stop working in 5.3.8
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            GD related
 Operating System:   Linux
 PHP Version:        5.3.8
 Block user comment: N
 Private report:     N

 New Comment:

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,


Previous Comments:
------------------------------------------------------------------------
[2011-09-29 19:47:20] ahar...@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 19:45:11] 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.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55816&edit=1

Reply via email to