From: marc r. <mar...@ho...> - 2005-12-21 14:16:52
|
Hi, I'm using the bridge 3.0.3a, php 4.3.10 and java 1.5.0_06. According to the documentation this should work: $str = new Java("java.lang.String", "hello world"); echo (string)$str; the expected output is: "hello world" the actual output is: "Object" Php does not cast the string, I have to call echo $str->toString(); explicitly to get the output "hello world". Is this a bug? Marc _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |