Mantis - Quercus
Viewing Issue Advanced Details
1228 major always 07-04-06 05:57 07-18-06 11:25
akdeivanaathan  
ferg  
normal  
closed 3.0.19  
fixed  
none    
none 3.0.20  
0001228: Accessing the HashMap return value from java module in PHP
Hi,

I tried the java module example and tried to return the HashMap object from Java to the calling php file. I get the return value, but it has been forwarded as resource, and when i tried to access with either as a Object or as an Array i am not able to get values from the return value. But when i have the var_dump, the values are displayed properly.

Can you guide me, how this can be handled.

Thx,
Deiva

Notes
(0001399)
koreth   
07-13-06 22:29   
See also bug 1109. Quercus currently treats a HashMap like any other Java object; you can call its methods. So to get the value for a key, call "get" just like you would in Java:

$value = $map->get("key");
(0001413)
ferg   
07-18-06 11:25   
php/0cc0, basic support