|
From: <php...@li...> - 2009-01-05 09:05:49
|
Hi all, I want to wrap two PHP objects as closures, pass them to Java, and in Java call a method on the first closure with the second closure as parameter. I believe that there's no simple java_closure()-call to do this at once. Therefore I wrote a Java-class that takes over the two closures and tries to do what I desribed above. See attachment for my PHP and Java code look. The problem is that on the php side I get a new object of type PhpProcedure instead of the closure/proxy I created before. Therefore within the method I always get the wrong parameter passed in. If I omit the line where I replace Proxy by underlying PhpProcedure in my java code, I get an (dollar)Proxy0-object instead of the PhpProcedure - which is still wrong. What I probably would need to get is the PhpProcedureProxy, but I've got no glue how to get a handle on that on the java side. I'm quite new to PHP-Java-Bridge, so I don't know whether this is a missing feature or I'm missing some basic understanding. Regards Juergen |