]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #27056 (ints used instead of longs inside some GD functions)
authorIlia Alshanetsky <iliaa@php.net>
Wed, 28 Jan 2004 01:38:15 +0000 (01:38 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 28 Jan 2004 01:38:15 +0000 (01:38 +0000)
NEWS
ext/gd/gd.c

diff --git a/NEWS b/NEWS
index 6350d8ffdba72c814991747b3dfaf42580782ee0..902c4cd86dcb8da7fbbbd0bcd8af9a33744e7ce3 100644 (file)
--- 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 
index 8184342ef0cd9bdb86fd1284cd8caa614a722b41..98d18bf1eb8bf8d3c53590caaa462ff9d50e9c4b 100644 (file)
@@ -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;