]> granicus.if.org Git - php/commitdiff
this should be here..styles must be array
authorfoobar <sniper@php.net>
Mon, 11 Jun 2001 15:21:47 +0000 (15:21 +0000)
committerfoobar <sniper@php.net>
Mon, 11 Jun 2001 15:21:47 +0000 (15:21 +0000)
ext/gd/gd.c

index ed3460cb571c5e84850c05314accc7d0e5eac9f9..9eb90c16a908bc2af88d684d4eb1c429422a31f0 100644 (file)
@@ -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)));