From: <php...@li...> - 2007-05-04 09:02:01
|
--> <C v="demo.NCI" p="I" i="6be6668" /> --> </C> <-- <O v="1" p="O" i="6be6668"/> --> <I v="0" m="castToBoolean" p="I" i="63bf1c4" /> --> <O v="1" /> --> </I> According to the protocol you use the following code: $obj = (boolean) new java("demo.NCI"); The result of the cast is true. <-- <B v="T" i="63bf1c4"/> At least on protocol level there's nothing wrong with your code; you've casted the result object to a PHP boolean value. I don't know where the boolean cast comes from and why you or the PHP interpreter confuses the PHP boolean value with a PHP null object. Which PHP version do you use? And how exactly does the code look like? Note that PHP sometimes uses implicit casts, depending on the context, for example "$obj" implicitly casts $obj to a PHP string value. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |