From: <php...@li...> - 2006-05-04 17:38:15
|
Hi, > the OCI8 extension, with the Oracle client installed [...] > cgi process (through Runtime.exec()). In CGIServlet thank you very much for this problem report. I have created a ticket for this, please see PR1481993: http://sourceforge.net/tracker/index.php?func=detail&aid=1481993&group_id=117793&atid=679233 > I created a simple patch to CGIServlet > $CGIEnvironment.setCGIEnvironment() What about changing setCGIEnvironment to protected Map getProcessEnvironment() {...} so that JDK 1.4 users can override it using a custom PhpCgiServlet or a custom PhpScriptEngine. The default implementation of getProcessEnvironment() would simply delegate to JDK1.5 System.getenv() using reflection: + try { + Method m = System.class.getMethod("getenv", EMPTY_PARAM); + Map map = (Map) m.invoke(System.class, EMPTY_ARG); + defaultEnv.putAll(map); + } catch (Exception e) {/*ignore*/} + return defaultEnv; Please see PR1481993 for details. > Under linux I would use a > php-cgi.sh script to setup the path, but I don't > know if there is a > similar way to handle this under Windows? I usually start php in FastCGI server mode outside of java, using the command: export X_JAVABRIDGE_OVERRIDE_HOSTS=/ php-cgi -b127.0.0.1:9667 AFAIK the FCGI server mode is currently not available on windows, but this might change in the future; the FCGI sapi is still being developed. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |