diff options
author | Sam Ruby <rubys@php.net> | 2000-07-22 20:36:11 +0000 |
---|---|---|
committer | Sam Ruby <rubys@php.net> | 2000-07-22 20:36:11 +0000 |
commit | f4e94a50301e9c55b5ef62640bb59597272bba52 (patch) | |
tree | 9f618720d557a6af936b82d77949cadabe913826 /ext/rpc/java/java.c | |
parent | 668af98d753aa2991af11e0b2a0469559097eead (diff) | |
download | php-git-f4e94a50301e9c55b5ef62640bb59597272bba52.tar.gz |
Complete the work mapping arrays and hashtables
Diffstat (limited to 'ext/rpc/java/java.c')
-rw-r--r-- | ext/rpc/java/java.c | 11 |
1 files changed, 11 insertions, 0 deletions
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) { |