summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-01-28 01:36:53 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-01-28 01:36:53 +0000
commit472a3a2446ac36a5adc81ebc8a1343e98b03149c (patch)
treeaca8779108954459d9c8c62d802cce569585f88d
parent1c347eccf8b9fa9a74db7fa51c1ca8022d9ef71f (diff)
downloadphp-git-472a3a2446ac36a5adc81ebc8a1343e98b03149c.tar.gz
Fixed bug #27056 (ints used instead of longs inside some GD functions).
-rw-r--r--ext/gd/gd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 757ef9d63f..d43c7e625c 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1066,7 +1066,7 @@ PHP_FUNCTION(imagelayereffect)
PHP_FUNCTION(imagecolorallocatealpha)
{
zval *IM;
- int red, green, blue, alpha;
+ long red, green, blue, alpha;
gdImagePtr im;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zllll", &IM, &red, &green, &blue, &alpha) == FAILURE) {
@@ -3421,7 +3421,7 @@ PHP_FUNCTION(imagepstext)
{
zval *img, *fnt;
int i, j;
- int _fg, _bg, x, y, size, space = 0, aa_steps = 4, width = 0;
+ long _fg, _bg, x, y, size, space = 0, aa_steps = 4, width = 0;
int *f_ind;
int h_lines, v_lines, c_ind;
int rd, gr, bl, fg_rd, fg_gr, fg_bl, bg_rd, bg_gr, bg_bl;