Description of problem: The PHP version that is shipped with RedHat ES3 has a bug in thi GD imagecopymerge function, making that function unusable. This has been fixed upstream. Bug information is located here: http://bugs.php.net/bug.php?id=23808 Version-Release number of selected component (if applicable): # rpm -q php php-4.3.2-19.ent How reproducible: 100% Steps to Reproduce: create a file called test.php in a websites document root: <?php $img = ImageCreateTrueColor(100, 100); ImageFill($img, 0, 0, ImageColorAllocate($img, 255, 255, 255)); $img2 = ImageCreateTrueColor(50, 50); ImageFill($img2, 0, 0, ImageColorAllocate($img2, 0, 0, 0)); ImageCopyMerge($img, $img2, 0, 0, 0, 0, 50, 50, 50); ImagePNG($img); ?> wget this php file, rename it to test.png , then xv it. Actual results: A black box Expected results: A grey box Additional info: Patches attached.
Created attachment 111506 [details] Patch for the PHP SPEC file
Created attachment 111507 [details] Patch to fix the ImageCopyMerge function.
Thanks for the contribution, Samuel.
daryllafferty
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2005-405.html