Added missing convert_to_* funcs. (should fix some crashes)

This commit is contained in:
foobar 2002-09-20 00:47:00 +00:00
parent c2d899e0dd
commit 4a39f70a9a

View File

@ -3068,18 +3068,21 @@ PHP_FUNCTION(imagepstext)
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);