#14754 [Opn->Fbk]: java.* configuration values from php.ini lost on subsequent executions

From: Date: Sat, 07 Sep 2002 05:13:06 +0000
Subject: #14754 [Opn->Fbk]: java.* configuration values from php.ini lost on subsequent executions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18603@lists.php.net to get a copy of this message
ID: 14754 Updated by: kalowsky@php.net Reported By: j.kase@privador.com -Status: Open +Status: Feedback Bug Type: Java related Operating System: Windows XP Home / Apache 1.3.24 PHP Version: 4.2.1 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-08-25 11:01:57] j.kase@privador.com Tested with the following: * Windows XP Home * Apache 1.3.24 * PHP 4.2.1 * Java SDK 1.4.0 The bug is still valid. Actually, even recompiling the Java class is not necessary - even if the class is run correctly, hitting Refresh in the browser multiple times (simulating heavy load) eventually causes the error to persist until Apache restart. Another observation - I change my class code and recompile, but PHP still uses the old class method code and returns outdated results, suggesting some kind of caching is taking place somewhere. I'm not sure if the two things are related or not. ------------------------------------------------------------------------ [2002-08-08 10:08:09] kalowsky@php.net Is this bug still valid for you in the recent releases? ------------------------------------------------------------------------ [2002-02-28 23:34:33] adam.swick@pantellos.com I am not sure if this will help you, but I received similar, but reproducible behavior when performing the following: 1. Load a PHP page in the browser that calls Java -- works fine. 2. Wait a few minutes and refresh the page -- receive "Fatal error: Unable to create Java Virtual Machine". 3. Restart Apache and move back to step 1. I noticed that once I changed Apache back to loading the PHP CGI Binary, the problem went away. There appears to be a bug running PHP-Java when PHP is loaded as an Apache module. This was tested on Apache/1.3.20 Server and PHP 4.1.1. ------------------------------------------------------------------------ [2002-02-24 11:44:53] j.kase@privador.com Installed PHP 4.1.1 and Java(TM) Development Kit 1.2.2_011 from Sun (filename jdk-1_2_2_011-win.exe). Problem remains the same - after recompiling Java class I get "Unable to create Java Virtual Machine". After restarting Apache, it works again until I recompile Java class. I am not sure that I have myself configured everything correctly, so here is the [Java] section from my php.ini just in case. [Java] java.class.path = "e:/program files/php/java/php_java.jar;e:/webs/javaclasses/" java.home = e:/jdk java.library = e:/jdk\jre\bin\classic\jvm.dll java.library.path = "e:/program files/php/extensions;" ------------------------------------------------------------------------ [2002-02-24 06:16:00] yohgaki@php.net Please test with PHP 4.1.1+JDK 1.2 and report the result back Please do not forget updating PHP version. Thanks. ------------------------------------------------------------------------ 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/14754 -- Edit this bug report at http://bugs.php.net/?id=14754&edit=1

« previous php.bugs (#18603) next »