Re: persistent java virtual machine under PHP

From: Date: Thu, 05 Dec 2002 13:59:42 +0000
Subject: Re: persistent java virtual machine under PHP
References: 1 2 3 4 5 6  Groups: php.dev 
Request: Send a blank email to php-dev+get-92121@lists.php.net to get a copy of this message
Ivan Ristic wrote:
No, I have been told (by someone, I do not remember) that if you use PHP as a servlet ext/java would use the same JVM. I haven't check to see whether that is correct.
My experiences: using php-4.2.3, calling plain php pages from Tomcat seem to be OK. But when calling java code from within the PHP code, I get a native mode exception: Unexpected Signal : 11 occurred at PC=0x4DAD935E Function=zend_hash_index_update_or_next_insert+0x3A Library=/.../php-4.2.3/libs/libphp4.so Current Java thread:
        at net.php.reflect.setResultFromObject(Native Method)
        at net.php.reflect.setResult(reflect.java:105)
        at net.php.servlet.readCookies(servlet.java:92)
        at net.php.servlet.send(Native Method)
        at net.php.servlet.service(servlet.java:188)
        at net.php.servlet.service(servlet.java:212)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
I also tried the CVS version, but I can't even compile it: /.../php4/sapi/servlet/servlet.c: In function Java_net_php_servlet_startup': /.../php4/sapi/servlet/servlet.c:261: warning: passing arg 2 of `php_module_startup' from incompatible pointer type make: *** No rule to make target `sapi/servlet/java.c', needed by `sapi/servlet/java.lo'. Stop. What java.c is expected here? The same as in ext/java ? Akos

« previous php.dev (#92121) next »