sniper Thu Sep 19 20:47:01 2002 EDT Modified files: /php4/ext/gd gd.c Log: Added missing convert_to_* funcs. (should fix some crashes) Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.212 php4/ext/gd/gd.c:1.213 --- php4/ext/gd/gd.c:1.212 Thu Sep 12 17:42:33 2002 +++ php4/ext/gd/gd.c Thu Sep 19 20:47:00 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.212 2002/09/12 21:42:33 sniper Exp $ */ +/* $Id: gd.c,v 1.213 2002/09/20 00:47:00 sniper Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -3068,17 +3068,20 @@ RETURN_FALSE; } convert_to_long_ex(sp); - convert_to_long_ex(aas); convert_to_long_ex(wd); convert_to_double_ex(ang); + convert_to_long_ex(aas); space = Z_LVAL_PP(sp); - aa_steps = Z_LVAL_PP(aas); width = Z_LVAL_PP(wd); angle = Z_DVAL_PP(ang); + aa_steps = Z_LVAL_PP(aas); break; default: ZEND_WRONG_PARAM_COUNT(); } + + convert_to_string_ex(str); + convert_to_long_ex(sz); ZEND_FETCH_RESOURCE(bg_img, gdImagePtr, img, -1, "Image", le_gd); ZEND_FETCH_RESOURCE(f_ind, int *, fnt, -1, "Type 1 font", le_ps_font);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php