Ivan Ristic wrote:
  There is a servlet which accepts requests and uses native
  code from libphp4.so to execute them. At the same time,
  the Java extension is used to provide access to Java
  objects from PHP itself.
but the ext/java as it is would not be suitable, as it would spawn new JVMs every once in a while (thus it would use a different JVM then the one that called the PHP page). the solution would be to pass the JVM somehow to the PHP page (maybe as a global variable?), and then make it use that JVM when executing JNI calls.

So a solution would be then:

- from java, use JNI to call function in libphp4.so
- libphp4.so, properly called, would execute a PHP script
- this PHP script could call java functions through JNI, using a JVM passed to it somehow

Where can I find documentation for calling libphp4.so? How do I execute a PHP script by calling some functions in libphp4.so?


Akos


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to