mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Heads up people!
Updated the get_current_key() API - the relevant authors, please take a look at the updated code and make sure it's ok...
This commit is contained in:
parent
36eaad252f
commit
aa6d2ac5d0
18 changed files with 63 additions and 84 deletions
|
@ -349,13 +349,12 @@ static jobject _java_makeObject(pval* arg JG_DC) {
|
|||
while(zend_hash_get_current_data(arg->value.ht, (void**)&value) == SUCCESS) {
|
||||
jval = _java_makeObject(*value JG_CC);
|
||||
|
||||
switch (zend_hash_get_current_key(arg->value.ht, &string_key, &num_key)) {
|
||||
switch (zend_hash_get_current_key(arg->value.ht, &string_key, &num_key, 0)) {
|
||||
case HASH_KEY_IS_STRING:
|
||||
key.type = IS_STRING;
|
||||
key.value.str.val = string_key;
|
||||
key.value.str.len = strlen(string_key);
|
||||
jkey = _java_makeObject(&key JG_CC);
|
||||
efree(string_key);
|
||||
break;
|
||||
case HASH_KEY_IS_LONG:
|
||||
key.type = IS_LONG;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue