|
From: <php...@li...> - 2009-01-20 22:40:46
|
Hi,
> assume you want to unwrap the wrapped PHP object. It might
> be a good idea to extend java_values() this way.
the change is in the cvs head now. The current download version 5.4.3.1 also contains this feature. From the NEWS:
Version 5.4.3.1
* java_unwrap($closure) can now used to retrieve the PHP object
associated with a java_closure(). Example:
class f{function __toString(){return "p";}function toString(){return "j"}};
$cl = java_closure(new f());
echo $cl;
=> j
$cl = java_unwrap($cl)
echo $cl;
=> p
Regards,
Jost Boekemeier
|