summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2004-03-13 23:21:25 +0000
committerPierre Joye <pajoye@php.net>2004-03-13 23:21:25 +0000
commit197b48322e4edaf43e35450800dfbb87901b2402 (patch)
tree9d700e2e0a9d9f50cf4184f34f33e439d97f037d /ext/gd
parent0763dfa16f49211a1cc462ec72a90cc18367f7f3 (diff)
downloadphp-git-197b48322e4edaf43e35450800dfbb87901b2402.tar.gz
- restore too the alphablending if we do not reach the end of the function
Notice: This function still crashes (stack overflow), to reproduce it see bug27582_2.phpt
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/libgd/gd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c
index cff22915a0..4ae2488b1c 100644
--- a/ext/gd/libgd/gd.c
+++ b/ext/gd/libgd/gd.c
@@ -1787,6 +1787,9 @@ void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color)
leftLimit = i;
}
if (leftLimit == -1) {
+ if (restoreAlphaBleding) {
+ im->alphaBlendingFlag = 1;
+ }
return;
}
/* Seek right */
@@ -1834,7 +1837,6 @@ void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color)
if (restoreAlphaBleding) {
im->alphaBlendingFlag = 1;
}
-
}
/*