Of course, now that you've said those magic words, my problem has
mysteriously vanished. The failure situations I described now work!
(BTW, I'm running PHP 5 with Bridge v2.0.7)
Thanks for your help all the same.
--Jonathan
-----Original Message-----
From: Jost Boekemeier [mailto:jos...@ya...]=20
Sent: Tuesday, December 13, 2005 2:24 PM
To: Abbett, Jonathan; php...@li...
Subject: RE: [Php-java-bridge-users] How to pass a "boolean", not
"java.lang.Boolean"?
Hi Jonathan,
> $object->setValue(true);
I could not reproduce the above problem using the
following test code:
public class test { =20
=20
public Object getBoolean(boolean b) {return new
Boolean(b);} =20
}
<?php =20
=20
=20
java_require(getcwd()); =20
=20
$test =3D new Java("test"); =20
=20
echo $test->getBoolean(true); =20
=20
echo $test->getBoolean(false);=20
php 4.3.9, bridge 2.0.8.
Can you please set the java.log_level to 5 and attach
the log at the end of the ticket
(http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1379741&gro=
up_
id=3D117793&atid=3D679233)
BTW: Is it possible to upgrade to php5 and bridge
version 3.0.2? PHP5 eliminates this problem altogether
as the bridge no longer needs to coerce the return
values. All the examples you've given should work as
expected, you can even cast java values to boolean or
other php types.=20
Regards,
Jost Boekemeier
=09
=09
=09
___________________________________________________________=20
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|