From f4e94a50301e9c55b5ef62640bb59597272bba52 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Sat, 22 Jul 2000 20:36:11 +0000 Subject: Complete the work mapping arrays and hashtables --- ext/rpc/java/java.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ext/rpc/java/java.c') diff --git a/ext/rpc/java/java.c b/ext/rpc/java/java.c index c56bff5bdc..ab9dcf172e 100644 --- a/ext/rpc/java/java.c +++ b/ext/rpc/java/java.c @@ -730,6 +730,17 @@ JNIEXPORT jlong JNICALL Java_net_php_reflect_nextElement return (jlong)(long)result; } +JNIEXPORT jlong JNICALL Java_net_php_reflect_hashIndexUpdate + (JNIEnv *jenv, jclass self, jlong array, jlong key) +{ + pval *result; + pval *handle = (pval*)(long)array; + ALLOC_ZVAL(result); + zend_hash_index_update(handle->value.ht, (unsigned long)key, + &result, sizeof(zval *), NULL); + return (jlong)(long)result; +} + JNIEXPORT jlong JNICALL Java_net_php_reflect_hashUpdate (JNIEnv *jenv, jclass self, jlong array, jbyteArray key) { -- cgit v1.2.1