From: <php...@li...> - 2010-07-04 11:28:29
|
> The next version, PHP/Java Bridge 6.2.1, will contain the following > changes: > > * Revert changes to PhpJavaServlet and Java.inc. Done. > * JSR 223 script engine improvements: FastCGI instead of CGI and > getInvocablePhpScriptEngine() w/o the URI parameter for local script > invocation and implementation of the Compilable interface. Done. The EngineFactory and the http script engines are gone. The only remaining script engines are the PhpScriptEngine, InvocablePhpScriptEngine and InteractivePhpScriptEngine. There were two examples using the http script engines. The jsr223.jsp has been replaced by a simple jsp:forward, the other example has been removed. Use the InvocablePhpScriptEngine and register it with the servlet shutdown hook if you need this functionality in a servlet. I have added JUnit test cases for the PhpScriptEngine. Before we make any release we should convert the old Makefile scripts from tests.php5 and tests.jsr223 to JUnit test cases. Known bugs so far: 1. The PHP FastCGI implementation doesn't pass the exit() status, see http://svn.php.net/viewvc/php/php-src/trunk/sapi/cgi/fastcgi.c?revision=296679&view=markup&sortby=date lines 1083-1087. 2. JSR223 compile() has no way to specify the compilation output file or directory.(!) The test cases use ((java.io.FileFilter)scriptEngine).accept(File); to pass it to the ScriptEngine. Regards, Jost Bökemeier |