Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 149946 - PHP GD ImageCopyMerge broken
PHP GD ImageCopyMerge broken
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: php (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-02-28 17:34 EST by Samuel Stringham
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-28 14:53:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch for the PHP SPEC file (1.21 KB, patch)
2005-02-28 17:35 EST, Samuel Stringham
no flags Details | Diff
Patch to fix the ImageCopyMerge function. (1.29 KB, patch)
2005-02-28 17:37 EST, Samuel Stringham
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2005:405 high SHIPPED_LIVE Moderate: PHP security update 2005-04-28 00:00:00 EDT

  None (edit)
Description Samuel Stringham 2005-02-28 17:34:12 EST
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:


Version-Release number of selected component (if applicable):

# rpm -q php 

How reproducible:


Steps to Reproduce:

create a file called test.php in a websites document root:

$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);


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.
Comment 1 Samuel Stringham 2005-02-28 17:35:48 EST
Created attachment 111506 [details]
Patch for the PHP SPEC file
Comment 2 Samuel Stringham 2005-02-28 17:37:31 EST
Created attachment 111507 [details]
Patch to fix the ImageCopyMerge function.
Comment 3 Joe Orton 2005-03-01 06:06:34 EST
Thanks for the contribution, Samuel.
Comment 4 Daryl 2005-03-16 14:58:40 EST
Comment 5 Josh Bressers 2005-04-28 14:53:26 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.