iliaa Tue Jan 27 20:38:16 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src NEWS
/php-src/ext/gd gd.c
Log:
MFH: Fixed bug #27056 (ints used instead of longs inside some GD functions)
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.543&r2=1.1247.2.544&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.543 php-src/NEWS:1.1247.2.544
--- php-src/NEWS:1.1247.2.543 Sun Jan 25 19:30:42 2004
+++ php-src/NEWS Tue Jan 27 20:38:14 2004
@@ -7,6 +7,8 @@
. 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
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.221.2.33&r2=1.221.2.34&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.221.2.33 php-src/ext/gd/gd.c:1.221.2.34
--- php-src/ext/gd/gd.c:1.221.2.33 Thu Dec 25 17:33:02 2003
+++ php-src/ext/gd/gd.c Tue Jan 27 20:38:15 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.221.2.33 2003/12/25 22:33:02 iliaa Exp $ */
+/* $Id: gd.c,v 1.221.2.34 2004/01/28 01:38:15 iliaa Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -967,7 +967,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) {
@@ -3306,7 +3306,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