|
From: <php...@li...> - 2008-09-03 14:06:10
|
>>Try:
>>$res = (bool) $IDEAS->isValidAccountNumber($acctnum) ;
>>if ($res === false) {
I tried
$result = (bool)$IDEAS->isValidAccountNumber($acctnum);
echo "result = $result";
And got
result = 1
This can't be correct because I set up the isValidAccountNumber function
to always return false.
I tried
$result = $IDEAS->isValidAccountNumber($acctnum);
echo "result = $result";
And got
result = [[o:Boolean]:"false"]
At least false is in there somewhere. I guess the question I should be
asking is how do I extract the value from the Boolean object returned by
Java?
When I try
$resval = $result->value;
echo "resval = $resval";
It takes a dump
Error [[o:Exception]:"java.lang.Exception: GetProperty failed:
[[o:Boolean]]->value.
Cause: java.lang.NoSuchFieldException: value (with args:).
If not value, then what?
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
|