From: Ilia Alshanetsky Date: Wed, 28 Jan 2004 01:38:15 +0000 (+0000) Subject: MFH: Fixed bug #27056 (ints used instead of longs inside some GD functions) X-Git-Tag: php-4.3.5RC2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7afa3484c03c2150beddaffc296fe448fb6afc81;p=php MFH: Fixed bug #27056 (ints used instead of longs inside some GD functions) --- diff --git a/NEWS b/NEWS index 6350d8ffdb..902c4cd86d 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ PHP 4 NEWS . Added "sybct.packet_size" php.ini option. . Changed "sybct.login_timeout" php.ini option changeable at runtime. . Fixed memory leak in sybase_set_message_handler(). +- Fixed bug #27056 (ints used instead of longs inside some GD functions). + (Ilia) - Fixed bug #27040 (passing an array of form-fields to CURLOPT_POSTFIELDS does not work). (Ilia, Jani) - Fixed bug #26974 (rename() doesn't check the destination file against diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 8184342ef0..98d18bf1eb 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -967,7 +967,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) { @@ -3306,7 +3306,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;