summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2002-12-04 17:12:20 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2002-12-04 17:12:20 +0000
commitebcfd99797f0e2ff2d3e930ec1e3872b26d0de19 (patch)
tree2943ac578875628a28383694ba7fd3091ab0bf8f /ext/standard/array.c
parent3d4145a7e38e315161c9bbd1f64c58d6b4b9b58f (diff)
downloadphp-git-ebcfd99797f0e2ff2d3e930ec1e3872b26d0de19.tar.gz
Forgot to merge this part
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c4
1 files changed, 1 insertions, 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 */