iliaa Tue Jan 27 20:36:54 2004 EDT Modified files: /php-src/ext/gd gd.c Log: Fixed bug #27056 (ints used instead of longs inside some GD functions). http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.284&r2=1.285&ty=u Index: php-src/ext/gd/gd.c diff -u php-src/ext/gd/gd.c:1.284 php-src/ext/gd/gd.c:1.285 --- php-src/ext/gd/gd.c:1.284 Thu Jan 8 03:15:29 2004 +++ php-src/ext/gd/gd.c Tue Jan 27 20:36:53 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.284 2004/01/08 08:15:29 andi Exp $ */ +/* $Id: gd.c,v 1.285 2004/01/28 01:36:53 iliaa Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -1066,7 +1066,7 @@ 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 @@ { 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php