Complete the work mapping arrays and hashtables

This commit is contained in:
Sam Ruby 2000-07-22 20:36:11 +00:00
parent 668af98d75
commit f4e94a5030
6 changed files with 136 additions and 6 deletions

View file

@ -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)
{