From: Moriyoshi Koizumi Date: Wed, 4 Dec 2002 17:12:20 +0000 (+0000) Subject: Forgot to merge this part X-Git-Tag: php-4.3.0RC3~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebcfd99797f0e2ff2d3e930ec1e3872b26d0de19;p=php Forgot to merge this part --- diff --git a/ext/standard/array.c b/ext/standard/array.c index ec544911f1..a1c0df8c0d 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -969,9 +969,7 @@ static int php_array_walk(HashTable *target_hash, zval **userdata TSRMLS_DC) Z_TYPE_P(key) = IS_LONG; Z_LVAL_P(key) = num_key; } else { - Z_TYPE_P(key) = IS_STRING; - Z_STRVAL_P(key) = string_key; - Z_STRLEN_P(key) = string_key_len-1; + ZVAL_STRINGL(key, string_key, string_key_len-1, 1); } /* Call the userland function */