Bug #14754 Updated: java.* configuration values from php.ini lost on subsequent executions
| From: | j dot kase at privador dot com | Date: | Sun, 24 Feb 2002 16:44:54 +0000 |
| Subject: | Bug #14754 Updated: java.* configuration values from php.ini lost on subsequent executions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-958@lists.php.net to get a copy of this message | ||
ID: 14754
Updated by: j.kase@privador.com
Reported By: j.kase@privador.com
-Status: Feedback
+Status: Open
Bug Type: Java related
Operating System: Windows 2000 SP2 / Apache 1.3.22
-PHP Version: 4.1.0
+PHP Version: 4.1.1
New Comment:
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;"
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2001-12-29 12:59:08] j.kase@privador.com
Another note. Users with Linux systems experiencing the same bug
reported receiving errors and successes interchangeably - something
like 3 errors, 1 success, 3 errors, 1 success etc. This is not true for
me - I only keep getting errors until I restart Apache.
------------------------------------------------------------------------
[2001-12-29 12:25:14] j.kase@privador.com
This is similar to bug#6990, but since I could no longer append to it,
I am opening a new report.
The symptoms are the same as descibed in #6990 - on initial execution,
all the values from php.ini are imported correctly, including the
java.* values so that I can execute custom Java classes from PHP (very
cool feature btw). However, after running the page a few times, it
gives me the error "Fatal error: Unable to create Java Virtual
Machine", which most likely means that it has blown up the paths to JDK
and classes which I have specified in php.ini, and cannot create a
JVM.
The trigger which invokes the error seems to be the moment when I
change and recompile my Java class. Sometimes it also triggers the
error after I update just my PHP code, but not my Java class.
Restarting Apache fixes the error each and every time (for a short
period - then it occurs exactly the same way), but obviously this is
not the viable solution that I am looking for.
Bug#6990 also mentions something about placing the [Java] section of
php.ini (i.e. configuration for a dynamic module) before or after
loading the extension code (in my case, Extension=php_java.dll). This
has zero effect - no matter whether the [Java] section is before or
after the Extension statement, it behaves exactly the same way.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14754&edit=1