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:
Zeev Suraski 2000-12-22 12:57:09 +00:00
parent 36eaad252f
commit aa6d2ac5d0
18 changed files with 63 additions and 84 deletions

View file

@ -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;