Hi,
> I get [o(String):"555-555-6573"]
this is described in the NEWS and here:
http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-java-bridge/php-java-bridge/documentation/API/html/java_8c.html#a60
The motivation was to make the following possible:
$s=new java("java.lang.String", '${12}');
$s=$s->substring(2);
$s=$s->substring(0, $s->length()-1);
echo "This is $s";
=> This is 12
echo $s+1;
=> 13
This "lazy evaluation" makes it possible to make the
java communication _much_ faster. In bridge version 2
we had to wait for a full round-trip for each
statement.
Since version 3 we can simply create a zval proxy and
delay the java evaluation until PHP5/PHP6 calls
__toString() or __cast().
You may argue that echo $s should behave exactly as
echo "$s" and that the [object:"..."] notation should
be used by var_dump() only. But currently (in the
current PHP5/PHP6 code base) var_dump($s) and echo $s
both call __toString() to display objects.
So if we want to change the behaviour, we must change
this in PHP, I think.
> Session serialID 2f0 expired
That's a bug in the bridge 3.x codebase, see
PR1397154.
I have just fixed it and committed it into the CVS
head.
Can you please try the current snapshot
(http://php-java-bridge.sf.net/snaps)?
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|