Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'PHP-5.3' into PHP-5.4

# By Pierre Joye (1) and Rasmus Lerdorf (1)
* PHP-5.3:
  fix null deref
  Fixed bugs #47675 and #64577 (fd leak on Solaris)
  • Loading branch information...
commit 10d62de4aadd83638967ff86dcb2f94688f8dece 2 parents a35d386 + 4d4adf4
@pierrejoye pierrejoye authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ext/gd/libgd/gd_rotate.c
View
3  ext/gd/libgd/gd_rotate.c
@@ -262,12 +262,13 @@ gdImagePtr gdImageRotate180 (gdImagePtr src, int ignoretransparent)
f = gdImageGetPixel;
}
dst = gdImageCreateTrueColor(src->sx, src->sy);
- dst->transparent = src->transparent;
if (dst != NULL) {
int old_blendmode = dst->alphaBlendingFlag;
dst->alphaBlendingFlag = 0;
+ dst->transparent = src->transparent;
+
gdImagePaletteCopy (dst, src);
for (uY = 0; uY<src->sy; uY++) {
Please sign in to comment.
Something went wrong with that request. Please try again.