|
From: <php...@li...> - 2007-08-08 16:17:13
|
Hi,
> > P.S. Additionally, the examples at the bottom of INSTALL.J2SE have the
> > line "e.eval((Reader)null);". What is that line used for?
it releases the PHP continuation immediately. It is taken from the tests,
which check if calling eval with a null works. I will remove that line.
However, you're right that the PHP/Java Bridge should release
the PHP continuation before the ScriptEngine is finalized. At the moment
it keeps the PHP continuation as long as possible. This isn't a problem in
practice (when ScriptEngines are pooled).
You say that you use the Script API from within servlets. First of all, the PhpScriptEngine
currently always starts a PHP CGI continuation. If you want to use PHP script instances from
a FastCGI or Apache/IIS pool, you currently need a URLReader. I think it makes sense to add
a ScriptEngine which exposes Apache or FastCGI PHP instances through the JSR223 script API.
Regards,
Jost Boekemeier
Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever
|