ID: 16402 Updated by: [EMAIL PROTECTED] Reported By: csbook at adproject dot net -Status: Feedback +Status: No Feedback Bug Type: Servlet related Operating System: RedHat Linux PHP Version: 4.1.2 New Comment:
No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2003-06-29 10:41:03] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-02-19 13:57:40] jsu2 at emory dot edu Since this feature appears to be alpha at best, we did some searching and found a workaround. This doesn't solve the bug, but it's doing what we wanted, which is to have a php front end talking to a java servlet backend. http://www.phpbuilder.com/mail/php-general/2001032/1269.php It may also be necessary to use HttpServletResponse.encodeRedirectURL before using sendRedirect in your servlet. http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#encodeRedirectURL(java.lang.String) ------------------------------------------------------------------------ [2003-02-09 22:12:01] kp dot wong at graduate dot hku dot hk I have tried to modify service calls into synchronized mode in servlet.java but the problem still couldn't be solved. Could you propose the suggested modification in servlet.java? ------------------------------------------------------------------------ [2003-02-08 18:44:38] jeremy at techjobsca dot com I also have experienced this issue. phsrvlt.jar simply is not thread safe. Running RH 7.3 Tomcat 4.1.18 php4.2.3. It loads once, then the second time, brings Tomcat down, error 11, conflict in libjvm.so. One thing I have to add to this, was that I was completely unable to compile php --with-java --with-servlet with 4.3.0 or a snapshot, it would be helpful to me to know if anyone has tried testing it with these, or to know if PHP development is simply going to phase out the servlet, as it just plain seems broken. And not being kept up. ------------------------------------------------------------------------ [2003-01-26 15:31:17] sudhirc_98 at yahoo dot com Same problem as yours. Figured it was a problem with multi-threading. If someone can fix the C code would be great to make it thread-safe. The temporary (not so preferred) fix would be to make the service calls in the servlet.java and formatter.java synchronized. This will stop the dumps you see but is not a scalable solution since it essentially makes the servlet single threaded. If anyone is able to find and fix the C code to be thread-safe - post the solution here. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16402 -- Edit this bug report at http://bugs.php.net/?id=16402&edit=1