From 9cc941b31ad7f7fe0a5a45d03199550032d6f694 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 28 May 2009 20:53:09 +0000 Subject: [PATCH] zstr should be used here, this nukes another compiler warning --- ext/gd/gd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 99b97713cf..4ffefc382b 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3624,7 +3624,7 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int zend_hash_internal_pointer_reset_ex(HASH_OF(EXT), &pos); do { zval ** item; - char * key; + zstr key; ulong num_key; if (zend_hash_get_current_key_ex(HASH_OF(EXT), &key, NULL, &num_key, 0, &pos) != HASH_KEY_IS_STRING) { @@ -3635,7 +3635,7 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int continue; } - if (strcmp("linespacing", key) == 0) { + if (strcmp("linespacing", key.s) == 0) { convert_to_double_ex(item); strex.flags |= gdFTEX_LINESPACE; strex.linespacing = Z_DVAL_PP(item); -- 2.50.1