mirror of
https://github.com/php/php-src.git
synced 2025-08-17 06:28:50 +02:00
Complete the work mapping arrays and hashtables
This commit is contained in:
parent
668af98d75
commit
f4e94a5030
6 changed files with 136 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue