diff options
author | Zeev Suraski <zeev@php.net> | 2000-12-22 12:57:09 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-12-22 12:57:09 +0000 |
commit | aa6d2ac5d0ee1d7cd608c6930ad0c57bc2953c47 (patch) | |
tree | 5776ae30d4c8115659935309042b9784ba55d592 /ext/java | |
parent | 36eaad252fc5fe292cd4f071f76e7879ce21130c (diff) | |
download | php-git-aa6d2ac5d0ee1d7cd608c6930ad0c57bc2953c47.tar.gz |
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...
Diffstat (limited to 'ext/java')
-rw-r--r-- | ext/java/java.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/java/java.c b/ext/java/java.c index acf699a396..68541f673e 100644 --- a/ext/java/java.c +++ b/ext/java/java.c @@ -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; |