From ebcfd99797f0e2ff2d3e930ec1e3872b26d0de19 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Wed, 4 Dec 2002 17:12:20 +0000 Subject: [PATCH] Forgot to merge this part --- ext/standard/array.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 */ -- 2.50.1