summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-06-11 15:21:47 +0000
committerfoobar <sniper@php.net>2001-06-11 15:21:47 +0000
commit73bfcd8a8a8a4da76d74262fac7525ac39b4af89 (patch)
tree4f35023b6fd53e1572b8a6ab2691bc0fba7b5516 /ext
parent491fcd2ef89b1534e1820aa742bfcce749cab534 (diff)
downloadphp-git-73bfcd8a8a8a4da76d74262fac7525ac39b4af89.tar.gz
this should be here..styles must be array
Diffstat (limited to 'ext')
-rw-r--r--ext/gd/gd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index ed3460cb57..9eb90c16a9 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -499,6 +499,7 @@ PHP_FUNCTION(imagesetstyle)
}
ZEND_FETCH_RESOURCE(im, gdImagePtr, IM, -1, "Image", le_gd);
+ convert_to_array_ex(styles);
/* copy the style values in the stylearr */
stylearr = emalloc(sizeof(int) * zend_hash_num_elements(HASH_OF(*styles)));