From 73bfcd8a8a8a4da76d74262fac7525ac39b4af89 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 11 Jun 2001 15:21:47 +0000 Subject: [PATCH] this should be here..styles must be array --- ext/gd/gd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index ed3460cb571..9eb90c16a90 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)));