Not for M2 but posting a mail so there's some record of the code...Was messing about in the weekend and got PHP going with the Java SCA runtime. Experimental sandbox code but could be interesting to use to get some interaction with the PHP SCA people and maybe from that help improve the other script language containers supported by the Java runtime. It uses the early access reference impl of JSR-223 and there's a very simple helloworld sample demonstrating an SCA component implemented in PHP.
Ended up being quite a mission to get it working but its easy to use now. To run the sample you need to build container-jsr223 [1], build the sample.php[2], download the JSR-223 RI [3], from the RI copy php5ts.dll from jsr223-win32-i386\php5\bin to your JRE bin directory, and when running the sample set the java.library.path system property to the JSR-223 RI PHP install, i.e. - Djava.library.path=C:\Java\JSR-223ea\jsr223-win32-i386\php5\bin ...ant [1] https://svn.apache.org/repos/asf/incubator/tuscany/sandbox/ant/container.jsr223/ [2] https://svn.apache.org/repos/asf/incubator/tuscany/sandbox/ant/sample.php/ [3] http://www.jcp.org/aboutJava/communityprocess/edr/jsr223/
